question: public Object parse ( String s ) throws XMLException { ByteArrayInputStream bin = null ; String st = stripWhitespaces ( s ) ; try { bin = new ByteArrayInputStream ( st . getBytes ( "UTF-8" ) ) ; } catch ( UnsupportedEncodingException ex ) { throw new XMLException ( "Encoding not supported:" + ex . toString ( ) ) ; } return parse ( bin ) ; }
target:  Parses an XML document from a String variable.