code: public GPathResult parse(final InputSource input) throws IOException, SAXException {
          reader.setContentHandler(this);
          reader.parse(input);
          return getDocument();
      }
docs: Parse the content of the specified input source into a GPathResult object
  
  @param input the InputSource to parse
  @return An object which supports GPath expressions
  @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.