public synchronized Node parse(String xml) throws IOException, SAXException {
        ByteArrayInputStream is = new ByteArrayInputStream(xml.getBytes());
        return parse(is);
    }
public synchronized Node parse ( String xml ) throws IOException , SAXException { ByteArrayInputStream is = new ByteArrayInputStream ( xml . getBytes ( ) ) ; return parse ( is ) ; }
Parse XML from a String.