Java XML SAX Parser createXmlReader()

Here you can find the source of createXmlReader()

Description

create Xml Reader

License

Apache License

Declaration

private static SAXParserFactory createXmlReader() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.parsers.SAXParserFactory;

public class Main {
    private static SAXParserFactory createXmlReader() {
        SAXParserFactory spf = SAXParserFactory.newInstance();
        try {/*from   w  ww. j a va 2 s  . com*/
            spf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
            return spf;
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. createSAXParser()
  2. createSAXParser(DefaultHandler dh)
  3. createSaxParserFactory()
  4. createSchema(String url)
  5. createXMLReader()
  6. createXmlReader()
  7. createXmlReader()
  8. extractClasses(String xmlContent)
  9. getFactory()