A list of features that can be turned on and off have been defined for XML Reader implementations.
try { XMLReader parser = XMLReaderFactory.createXMLReader(); parser.setFeature( "http://xml.org/sax/features/namespaces", true); parser.parse( "test.xml"); } catch ( SAXException e) { e.printStackTrace(); }
Turn on Namespaces aware processing.
http://xml.org/sax/features/namespaces
Report original namespace prefixes.
http://xml.org/sax/features/namespace-prefixes
Use String.intern() for all names.
http://xml.org/sax/features/string-interning
Report validation errors.
http://xml.org/sax/features/validation
Include external entities.
http://xml.org/sax/features/external-general-entities
Include external parameter entities.
http://xml.org/sax/features/external-parameter-entities
The XML Parser supports XML 1.0 and 1.1.
http://xml.org/sax/features/xml-1.1
Report unicode normalization errors.
http://xml.org/sax/features/unicode-normalization-checking
Report xmlns uris for xmlns attributes.
http://xml.org/sax/features/xmlns-uris