public Document parseText ( String text ) throws SAXException , IOException , ParserConfigurationException { return parse ( new StringReader ( text ) ) ; }
A helper method to parse the given text as XML .