Element item = (Element) iter.next();
String identifierref = item.attributeValue("identifierref");
if (identifierref == null) continue;
XPath resourceXPath = rootElement.createXPath("//ns:resource[@identifier='" + identifierref + "']");
resourceXPath.setNamespaceURIs(nsuris);
Element elResource = (Element)resourceXPath.selectSingleNode(elResources);
if (elResource == null) throw new AddingResourceException("resource.no.matching.resource");
if (elResource.attribute("scormtype") != null) return false;
if (elResource.attribute("scormType") != null) return false;
if (elResource.attribute("SCORMTYPE") != null) return false;
if (elResource.attributeValue("href") != null) return true; // success.