Class HtmlDomTreeWalker

java.lang.Object
org.htmlunit.html.HtmlDomTreeWalker
All Implemented Interfaces:
Serializable

public class HtmlDomTreeWalker extends Object implements Serializable
In general this is an implementation of org.w3c.dom.traversal.TreeWalker. The class org.w3c.dom.traversal.TreeWalker is not available on Android therefore we have this impl as backend.
See Also:
  • Constructor Details

    • HtmlDomTreeWalker

      public HtmlDomTreeWalker(DomNode root, int whatToShow, NodeFilter filter, boolean expandEntityReferences) throws DOMException
      Creates an instance.
      Parameters:
      root - The root node of the TreeWalker. Must not be null.
      whatToShow - Flag specifying which types of nodes appear in the logical view of the TreeWalker. See NodeFilter for the set of possible Show_ values.
      filter - The NodeFilter to be used with this TreeWalker, or null to indicate no filter.
      expandEntityReferences - If false, the contents of EntityReference nodes are not present in the logical view.
      Throws:
      DOMException - on attempt to create a TreeWalker with a root that is null.
  • Method Details