164: SAXParser sp = spf.newSAXParser();
-
266: factory.setFeature("http://xml.org/sax/features/validation", false);
267: factory.setFeature("http://xml.org/sax/features/namespaces", true);
268: factory.setFeature("http://xml.org/sax/features/external-general-entities", !disableExternalEntities);
269: factory.setFeature("http://xml.org/sax/features/external-parameter-entities", !disableExternalEntities);
270: factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, enableSecureProcessingFeature);
271: factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", disableDTDs);
Full Snippet Info