REXML::Node (Module)

In: temp/node.rb

Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. Nodes have siblings.

Public Instance methods

Visit all subnodes of self recursively

Find (and return) first subnode (recursively) for which the block evaluates to true. Returns nil if none was found.

Returns the index that self has in its parent’s elements array, so that the following equation holds true:

  node == node.parent.elements[node.index_in_parent]

@return the next sibling (nil if unset)

@return the previous sibling (nil if unset)

[Validate]