protected static Document parseDocumentImpl ( InputSource inputSource , boolean enableExternalEntities , boolean isNamespaceAware ) throws ParserConfigurationException , SAXException , IOException { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( isNamespaceAware ) ; enableOrDisableExternalEntityParsing ( factory , enableExternalEntities ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; Document document = builder . parse ( inputSource ) ; return document ; }
Return an XML Document parsed from the given input source .