Package org.htmlcleaner
Class XmlTraversor
java.lang.Object
org.htmlcleaner.XmlTraversor
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
traverse
(XmlVisitor visitor, HtmlNode root) Start a depth-first traverse of the root and all of its descendants.
-
Field Details
-
visitor
-
-
Constructor Details
-
XmlTraversor
public XmlTraversor()
-
-
Method Details
-
traverse
Start a depth-first traverse of the root and all of its descendants.- Parameters:
visitor
- Node visitor.root
- the root node point to traverse.
-