events.setContentHandler(handler);
if (handler instanceof ErrorHandler) {
events.setErrorHandler((ErrorHandler) handler);
}
events.start();
} else if (content != null) {
SAXParser sp = saxFactory.newSAXParser();
XMLReader xr = sp.getXMLReader();
xr.setFeature(SAX_NAMESPACES_FEATURE, hasSaxNamespaces);