protected void configureReader() throws SAXException {
ContentHandler handler = xmlReader.getContentHandler();
if (handler == null) {
xmlReader.setContentHandler(new DefaultHandler());
}
// configure validation support
xmlReader.setFeature("http://xml.org/sax/features/validation", true);
// configure namespace support
xmlReader.setFeature("http://xml.org/sax/features/namespaces", true);
xmlReader.setFeature("http://xml.org/sax/features/namespace-prefixes",
false);
}
Configures the XMLReader before use |