Class XmlTraversor


  • public class XmlTraversor
    extends java.lang.Object
    Depth-first node traversor. Use to iterate through all nodes under and including the specified root node.

    This implementation does not use recursion, so a deep DOM does not risk blowing the stack.

    • Constructor Summary

      Constructors 
      Constructor Description
      XmlTraversor()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void traverse​(XmlVisitor visitor, HtmlNode root)
      Start a depth-first traverse of the root and all of its descendants.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlTraversor

        public XmlTraversor()
    • Method Detail

      • traverse

        public static void traverse​(XmlVisitor visitor,
                                    HtmlNode root)
        Start a depth-first traverse of the root and all of its descendants.
        Parameters:
        visitor - Node visitor.
        root - the root node point to traverse.