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-21, BSD License, Christian Gruen
  • Constructor Details

    • HtmlParser

      public HtmlParser(IO source, MainOptions opts) throws IOException
      Constructor.
      Parameters:
      source - document source
      opts - database options
      Throws:
      IOException - I/O exception
    • HtmlParser

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

    • 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