question: public static XMLReader createXMLReader ( boolean validating , boolean namespaceAware ) throws Exception { SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; factory . setValidating ( validating ) ; factory . setNamespaceAware ( namespaceAware ) ; SAXParser parser = factory . newSAXParser ( ) ; return parser . getXMLReader ( ) ; }
target:  This method attempts to use JAXP to locate the SAX2 XMLReader implementation. This method uses reflection to avoid being dependent directly on the JAXP classes.