public static Document toDocument ( String xml ) throws SAXException { try { return toDocument ( new StringReader ( xml ) ) ; } catch ( IOException e ) { //reading from string throw new RuntimeException ( e ) ; } }
Parses an XML string into a DOM .