Class ParseHtml

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence

    public class ParseHtml
    extends Parse
    Supports the saxon:parse-html() function, a variant of saxon:parse() that differs only in that it uses the TagSoup HTML parser
    • Constructor Detail

      • ParseHtml

        public ParseHtml()
    • Method Detail

      • setXMLReader

        protected void setXMLReader​(Configuration config,
                                    ParseOptions options)
                             throws XPathException
        Set the XML parser to be used, if different from the default XML parser
        Overrides:
        setXMLReader in class Parse
        Parameters:
        config - the Saxon configuration
        options - the ParseOptions object to be updated with the selected parser
        Throws:
        XPathException - if the selected parser cannot be loaded