Class HtmlParser

java.lang.Object
org.lobobrowser.html.parser.HtmlParser

public class HtmlParser extends Object
The HtmlParser class is an HTML DOM parser. This parser provides the functionality for the standard DOM parser implementation DocumentBuilderImpl. This parser class may be used directly when a different DOM implementation is preferred.
  • Field Details

    • MODIFYING_KEY

      public static final String MODIFYING_KEY
      A node UserData key used to tell nodes that their content may be about to be modified. Elements could use this to temporarily suspend notifications. The value set will be either Boolean.TRUE or Boolean.FALSE.
      See Also:
  • Constructor Details

    • HtmlParser

      public HtmlParser(Document document, ErrorHandler errorHandler, String publicId, String systemId)
      Deprecated.
      UserAgentContext should be passed in constructor.
      Constructs a HtmlParser.
      Parameters:
      document - A W3C Document instance.
      errorHandler - The error handler.
      publicId - The public ID of the document.
      systemId - The system ID of the document.
    • HtmlParser

      public HtmlParser(UserAgentContext ucontext, Document document, ErrorHandler errorHandler, String publicId, String systemId)
      Constructs a HtmlParser.
      Parameters:
      ucontext - The user agent context.
      document - An W3C Document instance.
      errorHandler - The error handler.
      publicId - The public ID of the document.
      systemId - The system ID of the document.
    • HtmlParser

      public HtmlParser(UserAgentContext ucontext, Document document)
      Constructs a HtmlParser.
      Parameters:
      ucontext - The user agent context.
      document - A W3C Document instance.
  • Method Details