public static Element parse ( String xmlString ) throws IOException { try { return parse ( new ByteArrayInputStream ( xmlString . getBytes ( "UTF-8" ) ) ) ; } catch ( IOException e ) { log . error ( "Cannot parse: " + xmlString ) ; throw e ; } }
Parse the given XML string and return the root Element