Package nu.validator.htmlparser.sax

Examples of nu.validator.htmlparser.sax.HtmlParser


    private Map<Name, DocumentFragment> attributesByElement = new HashMap<Name, DocumentFragment>();

    private boolean ignoreTextNodes = false;

    public static Spec parseSpec(InputSource in) throws IOException, SAXException {
        HtmlParser parser = new HtmlParser(XmlViolationPolicy.ALTER_INFOSET);
        Html5SpecBuilder handler = new Html5SpecBuilder();
        parser.setContentHandler(handler);
        parser.parse(in);
        return handler.buildSpec();
    }
View Full Code Here

TOP

Related Classes of nu.validator.htmlparser.sax.HtmlParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.