protected void load2DOMDocument(URL fileURL, URL fileURL2) throws IOException, DOMLoaderException { InputStream is = testResolve(fileURL); InputStream is2 = testResolve(fileURL2); DOMLoader domloader = new XercesLoader(); domloader.set_validating(false); domDoc = domloader.load(is); domDoc.setDocumentURI(fileURL.toString()); domDoc2 = domloader.load(is2); domDoc2.setDocumentURI(fileURL2.toString()); is.close(); is2.close(); }
protected void loadDOMDocument(URL fileURL, Schema schema) throws IOException, DOMLoaderException { InputStream is = testResolve(fileURL); DOMLoader domloader = new XercesLoader(schema); domloader.set_validating(false); domDoc = domloader.load(is); domDoc.setDocumentURI(fileURL.toString()); }