In Files

  • xmlrpc/parser.rb

NQXML::Node

Public Instance Methods

[](index) click to toggle source
 
               # File xmlrpc/parser.rb, line 28
def [] (index)
  @children[index]
end
            
childNodes() click to toggle source
 
               # File xmlrpc/parser.rb, line 22
def childNodes
  @children
end
            
hasChildNodes() click to toggle source
 
               # File xmlrpc/parser.rb, line 25
def hasChildNodes
  not @children.empty?
end
            
nodeName() click to toggle source
 
               # File xmlrpc/parser.rb, line 45
def nodeName
  #TODO: error when wrong Entity-type
  @entity.name
end
            
nodeType() click to toggle source
 
               # File xmlrpc/parser.rb, line 32
def nodeType
  if @entity.instance_of? NQXML::Text then :TEXT
  elsif @entity.instance_of? NQXML::Comment then :COMMENT
  #elsif @entity.instance_of? NQXML::Element then :ELEMENT
  elsif @entity.instance_of? NQXML::Tag then :ELEMENT
  else :ELSE
  end
end
            
nodeValue() click to toggle source
 
               # File xmlrpc/parser.rb, line 41
def nodeValue
  #TODO: error when wrong Entity-type
  @entity.text
end
            
removeChild(node) click to toggle source
 
               # File xmlrpc/parser.rb, line 19
def removeChild(node)
  @children.delete(node)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus