Class XML::DOM::Node
In: lib/xml/dom/core.rb
lib/xml/dom/digest.rb
lib/xml/dom/visitor.rb
lib/xml/dom2/xpath.rb
lib/xml/dom2/node.rb
Parent: Object

Methods

+   +   <=>   ==   []   []   []=   []=   __collectAncestorNS   __collectDescendatNS   __sibling   _ancestor   _checkNode   _checkNode   _child   _descendant   _following   _fsibling   _getChildIndex   _getChildIndex   _getMyLocation   _getMyLocationInXPath   _getNodeByAbsoluteLocationTerm   _insertNodes   _insertNodes   _matchAttribute?   _matchNode?   _matchNodeAttributes?   _matchNodeType?   _nodesByLocationTerms   _nodesByRelativeLocationTerm   _preceding   _psibling   _removeFromTree   _removeFromTree   _removeNode   _removeNode   _searchID   accept   accept_name   appendChild   appendChild   attributes   attributes   childNodes   childNodes   childNodes=   childNodes=   children_accept   children_accept_name   cloneNode   cloneNode   dump   dump   each   each   firstChild   firstChild   getDigest   getNodesByXPath   getNodesByXPointer   hasAttributes   hasChildNodes   hasChildNodes   insertBefore   insertBefore   inspect   inspect   isSupported   lastChild   lastChild   localname   makeXPath   makeXPointer   namespaceURI   new   new   nextSibling   nextSibling   nodeName   nodeName   nodeType   nodeType   nodeValue   nodeValue   nodeValue=   nodeValue=   ownerDocument   ownerDocument   ownerDocument=   ownerDocument=   parentNode   parentNode   parentNode=   parentNode=   prefix   prefix=   previousSibling   previousSibling   removeChild   removeChild   replaceChild   replaceChild   to_s   to_s   trim   trim  

Included Modules

Enumerable Enumerable Comparable

Constants

NODE_NODE = 0   [DOM]
ELEMENT_NODE = 1
ATTRIBUTE_NODE = 2
TEXT_NODE = 3
CDATA_SECTION_NODE = 4
ENTITY_REFERENCE_NODE = 5
ENTITY_NODE = 6
PROCESSING_INSTRUCTION_NODE = 7
COMMENT_NODE = 8
DOCUMENT_NODE = 9
DOCUMENT_TYPE_NODE = 10
DOCUMENT_FRAGMENT_NODE = 11
NOTATION_NODE = 12
NODE_NODE = 0   [DOM]
ELEMENT_NODE = 1
ATTRIBUTE_NODE = 2
TEXT_NODE = 3
CDATA_SECTION_NODE = 4
ENTITY_REFERENCE_NODE = 5
ENTITY_NODE = 6
PROCESSING_INSTRUCTION_NODE = 7
COMMENT_NODE = 8
DOCUMENT_NODE = 9
DOCUMENT_TYPE_NODE = 10
DOCUMENT_FRAGMENT_NODE = 11
NOTATION_NODE = 12

Public Class methods

new([child1, child2, …]) or new(child1, child2, …)

    child?: String or Node

new([child1, child2, …]) or new(child1, child2, …)

    child?: String or Node

Public Instance methods

get the Node object by IDs [experimental implement]

XML::Grove::Visitor like interfaces

[DOM] Floating objects are not owned by any documents.

[DOM2]

trim extra whitespaces if attribute ‘xml:space’ is ‘preserve’, don‘t trim any white spaces

trim extra whitespaces

[Validate]