code: public Document parseString(String text) throws SAXException {
          try {
              return parse(new InputSource(new StringReader(text)));
          } catch (IOException e) {
              throw new RuntimeException("unexpected world exception while reading memory stream", e);
          }
      }
docs: This method is not called "parse" to avoid confusion with file parsing methods