Factory for creating HTML parsers. Parser customization properties can be specified but do not necessarily work
for every parser type.
since: 1.5.2 author: Russell Gold author: Bernhard Wagner
setParserWarningsEnabled(boolean enabled) If true, tells the parser to display warning messages.
public static void
setPreserveTagCase(boolean preserveTagCase) Specifies whether the parser should preserve the case of HTML tags and attributes.
public static void
setReturnHTMLDocument(boolean returnHTMLDocument) Specifies whether the parser should return an HTMLDocument object rather than a Document object.
Not every parser can support this capability.
public static void setParserWarningsEnabled(boolean enabled)(Code)
If true, tells the parser to display warning messages. The default is false (warnings are not shown).
setPreserveTagCase
public static void setPreserveTagCase(boolean preserveTagCase)(Code)
Specifies whether the parser should preserve the case of HTML tags and attributes. Not every parser can
support this capability. Note that enabling this will disable support for the HTMLDocument class.
See Also:HTMLParserFactory.setReturnHTMLDocument
setReturnHTMLDocument
public static void setReturnHTMLDocument(boolean returnHTMLDocument)(Code)
Specifies whether the parser should return an HTMLDocument object rather than a Document object.
Not every parser can support this capability. Note that enabling this will disable preservation of tag case.
See Also:HTMLParserFactory.setPreserveTagCase