/** Checks and returns whether the loaded document's version is correct. * It is the same as checkVersion(url, doc, false). * @since 3.5.0 */ public static boolean checkVersion(URL url, Document doc) throws Exception { return checkVersion(url, doc, false); }
try { final Document doc = new SAXBuilder(true, false, true).build(url); if (ConfigParser.checkVersion(url, doc, true)) parseLang(doc, locator, url, false); } catch (Exception ex) { for (XMLResourcesLocator.Resource res : xmls) { try { if (ConfigParser.checkVersion(res.url, res.document, true)) parseLang(res.document, locator, res.url, true); } catch (Exception ex) {
log.debug("Loading " + res.url); try { if (checkVersion(res.url, res.document)) { try { String path = res.url.toExternalForm();