/** Get the xml file from the URL and parse it into a Document object. * Calls new XmlFileLoader(validateDTDs).getDocumentFromURL(url); * @param url the URL from which the xml doc is to be obtained. * @return Document */ public static Document getDocument(URL url, boolean validateDTDs) throws DeploymentException { XmlFileLoader loader = new XmlFileLoader(validateDTDs); return loader.getDocumentFromURL(url); }
URLClassLoader cl = new URLClassLoader( new URL[] {url}, Thread.currentThread().getContextClassLoader()); XmlFileLoader xfl = new XmlFileLoader(); BeanVerifier verifier = new BeanVerifier();
XmlFileLoader xmlLoader = new XmlFileLoader(); String warURI = warURL.toExternalForm(); try {