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