class XmlUtils {

    public static XMLReader createXmlReader() throws SAXException {
        XMLReader reader = XMLReaderFactory.createXMLReader();
        reader.setFeature(FEATURE_DISALLOW_DOCTYPE, true);
        reader.setFeature(FEATURE_EXTERNAL_GENERAL_ENTITIES, false);
        return reader;
    }

    private  XmlUtils();

}