/** * Parses the inputsource and informs the error handler about errors. * * @throws DOMParserException * if an SAXException or IOException occurs. */ public Document parse(final InputSource inputSource, final ErrorHandler errorhandler) throws DOMParserException { return parse(inputSource, errorhandler, getDefaultEntityResolver()); }
/** * Parses the inputsource. * * @throws DOMParserException * if an SAXException or IOException occurs. */ public Document parse(final InputSource inputSource) throws DOMParserException { return parse(inputSource, null, getDefaultEntityResolver()); } }