IElementTraversal class

IElementTraversal class

The ElementTraversal interface is a set of read-only attributes which allow an author to easily navigate between elements in a document. In conforming implementations of Element Traversal, all objects that implement Element must also implement the ElementTraversal interface.

The IElementTraversal type exposes the following members:

Properties

PropertyDescription
first_element_childReturns the first child element node of this element. null if this element has no child elements.
last_element_childReturns the last child element node of this element. null if this element has no child elements.
previous_element_siblingReturns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
next_element_siblingReturns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.
child_element_countReturns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.

See Also