Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface IXhtmlParser

    Tries parsing an XHTML string as a modern XHTML5 string, also removes XML styling properties and XSLT references

    If document is not valid XML, it tries parsing it as HTML5

    interface IXhtmlParser {
        getDocument(): HTMLDocument;
        getParserError(): HTMLDocument;
        getXmlHeader(): string;
        isHtmlDocument(): boolean;
        isXhtmlDocument(): boolean;
    }

    Implemented by

    Methods

    • Get the parsed document if it was parsed successfully.

      Returns HTMLDocument

    • Get parser errors if any was encountered.

      Returns HTMLDocument

    • Get the XML header for the parsed document.

      Returns string

    • If the document was parsed as a HTML document.

      Returns boolean

    • If the document was parsed as a XHTML document.

      Returns boolean