Package org.apache.xerces.parsers

Examples of org.apache.xerces.parsers.StandardParserConfiguration

  • Properties @author Arnaud Le Hors, IBM @author Andy Clark, IBM @version $Id: StandardParserConfiguration.java,v 1.27 2002/09/27 14:15:08 neeraj Exp $

  •     public IRubyObject xml_version(ThreadContext context) {
            return currentNode().getXmlVersion();
        }

        protected XMLPullParserConfiguration createReader(Ruby ruby, Options options) {
            StandardParserConfiguration config = new StandardParserConfiguration();
            DocumentHandler handler = new DocumentHandler(ruby);
            // XMLReader reader = XMLReaderFactory.createXMLReader();
            config.setDocumentHandler(handler);
            config.setDTDHandler(handler);
            config.setErrorHandler(handler);
            config.setEntityResolver(new EntityResolver2Wrapper(new NokogiriEntityResolver(ruby, null, options)));
            // config.setFeature("http://xml.org/sax/features/xmlns-uris", true);
            // config.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            config.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", options.dtdLoad || options.dtdValid);
            return config;
        }
    View Full Code Here

    TOP

    Related Classes of org.apache.xerces.parsers.StandardParserConfiguration

    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.