/src/main/java/org/htmlunit/util/XmlUtils.java
if ( prefix != null) {
if ( webResponse == null ) {
}; private XmlUtils() { } public static Document buildDocument(final WebResponse webResponse) throws IOException, SAXException, ParserConfigurationException { final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); <extra_id_0> return factory.newDocumentBuilder().newDocument(); } factory.setNamespaceAware(true); final InputStreamReader reader = new InputStreamReader( new BOMInputStream(webResponse.getContentAsStream()), webResponse.getContentCharset());