public static Document parse ( Reader reader ) throws SAXException , IOException , ParserConfigurationException { return parse ( reader , false , true ) ; }
Creates a DocumentBuilder and uses it to parse the XML text read from the given reader . A non - validating namespace aware parser which does not allow DOCTYPE declarations is used .