Core Features

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( "", true);
  parser.parse( "test.xml");
} catch ( SAXException e) {
  • Turn on Namespaces aware processing.
  • Report original namespace prefixes.
  • Use String.intern() for all names.
  • Report validation errors.
  • Include external entities.
  • Include external parameter entities.
  • The XML Parser supports XML 1.0 and 1.1.
  • Report unicode normalization errors.
  • Report xmlns uris for xmlns attributes.