Class HtmlParser


  • public final class HtmlParser
    extends XMLParser
    This class uses TagSoup to convert HTML input to well-formed XML. If TagSoup is not found in the classpath, the original document is passed on. TagSoup was written by John Cowan and is based on the Apache 2.0 License: http://home.ccil.org/~cowan/XML/tagsoup/.
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Constructor Detail

      • HtmlParser

        public HtmlParser​(IO source,
                          MainOptions options,
                          HtmlOptions hopts)
                   throws IOException
        Constructor.
        Parameters:
        source - document source
        options - main options
        hopts - html options
        Throws:
        IOException - I/O exception
    • Method Detail

      • available

        public static boolean available()
        Checks if a CatalogResolver is available.
        Returns:
        result of check
      • parser

        public static String parser()
        Returns the name of the parser, or an empty string.
        Returns:
        name of parser