question: public static Document loadDocument ( InputStream stream ) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . parse ( stream ) ; }
target:  Loads a XML document from a stream and returns the corresponding DOM Document.