/** * Returns a newly created SAX 2 XMLReader, which is namespace aware * * @return a SAX 2 XMLReader. * @throws BuildException on error. * @see #getParserFactory * @since Ant 1.6 */ public static XMLReader getNamespaceXMLReader() throws BuildException { try { return newSAXParser(getNSParserFactory()).getXMLReader(); } catch (SAXException e) { throw convertToBuildException(e); } }