// creating TFiles only if iso exist
URL baseUrl = new URL(infoUrl.toExternalForm());
baseUrl = new URL(baseUrl, iso);
NodeList ndDatasets = (NodeList)xPath.evaluate("//dataset[string-length(normalize-space(@urlPath))>0]", ndCatalog, XPathConstants.NODESET);
for (Node ndDataset: new NodeListAdapter(ndDatasets)) {
String url = (String)xPath.evaluate("@urlPath",ndDataset,XPathConstants.STRING);
String ID = (String)xPath.evaluate("@ID",ndDataset,XPathConstants.STRING);
if (!url.isEmpty()) {
URL datasetUrl = new URL(baseUrl, url);
TFile datasetFile = new TFile(proxy, datasetUrl.toExternalForm()+"?catalog="+encodeUrl(info.getUrl())+"&dataset="+ID);
resources.add(datasetFile);
}
}
}
NodeList ndCatalogRefs = (NodeList)xPath.evaluate("//catalogRef/@href", ndCatalog, XPathConstants.NODESET);
for (Node ndCatalogRef: new NodeListAdapter(ndCatalogRefs)) {
String url = Val.chkStr(ndCatalogRef.getNodeValue());
URL catalogUrl = new URL(infoUrl, url);
String catalogUrlExternal = catalogUrl.toExternalForm();
if (!processedFolders.contains(catalogUrlExternal)) {
processedFolders.add(catalogUrlExternal);