Save This Page
Home » openjdk-7 » org.w3c » dom » traversal » [javadoc | source]
org.w3c.dom.traversal
public interface: DocumentTraversal [javadoc | source]

All Known Implementing Classes:
    DeferredDocumentImpl, DocumentImpl, SOAPDocumentImpl, PSVIDocumentImpl

DocumentTraversal contains methods that create NodeIterators and TreeWalkers to traverse a node and its children in document order (depth first, pre-order traversal, which is equivalent to the order in which the start tags occur in the text representation of the document). In DOMs which support the Traversal feature, DocumentTraversal will be implemented by the same objects that implement the Document interface.

See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.

Method from org.w3c.dom.traversal.DocumentTraversal Summary:
createNodeIterator,   createTreeWalker
Method from org.w3c.dom.traversal.DocumentTraversal Detail:
 public NodeIterator createNodeIterator(Node root,
    int whatToShow,
    NodeFilter filter,
    boolean entityReferenceExpansion) throws DOMException
    Create a new NodeIterator over the subtree rooted at the specified node.
 public TreeWalker createTreeWalker(Node root,
    int whatToShow,
    NodeFilter filter,
    boolean entityReferenceExpansion) throws DOMException
    Create a new TreeWalker over the subtree rooted at the specified node.