code: public Document parseText(String text) throws SAXException, IOException, ParserConfigurationException {
          return parse(new StringReader(text));
      }
docs: A helper method to parse the given text as XML.
  
  @param text the XML text to parse
  @return the root node of the parsed tree of Nodes
  @throws SAXException                 Any SAX exception, possibly wrapping another exception.
  @throws IOException                  An IO exception from the parser, possibly from a byte
  stream or character stream supplied by the application.
  @throws ParserConfigurationException if a DocumentBuilder cannot be created which satisfies
  the configuration requested.
  @see #parse(Reader)