Module: REXML::Node

Module | REXML::Node
In: | temp/node.rb

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

### Methods

each_recursive find_first_recursive indent index_in_parent next_sibling_node parent? previous_sibling_node to_s

### Public Instance methods

each_recursive() {|node| ...}

Visit all subnodes of `self` recursively

find_first_recursive() {|node| ...}

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

indent(to, ind)
index_in_parent()

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]

next_sibling_node()

@return the next sibling (nil if unset)

parent?()
previous_sibling_node()

@return the previous sibling (nil if unset)

to_s(indent=-1)

[Validate]