Search in sources :

Example 1 with NamespaceMap

use of org.orcid.core.utils.NamespaceMap in project ORCID-Source by ORCID.

the class IdentityProviderManagerImpl method createXPath.

private XPath createXPath() {
    XPath xpath = XPathFactory.newInstance().newXPath();
    NamespaceMap namespaceMap = new NamespaceMap();
    namespaceMap.putNamespace("md", "urn:oasis:names:tc:SAML:2.0:metadata");
    namespaceMap.putNamespace("mdui", "urn:oasis:names:tc:SAML:metadata:ui");
    xpath.setNamespaceContext(namespaceMap);
    return xpath;
}
Also used : XPath(javax.xml.xpath.XPath) NamespaceMap(org.orcid.core.utils.NamespaceMap)

Aggregations

XPath (javax.xml.xpath.XPath)1 NamespaceMap (org.orcid.core.utils.NamespaceMap)1