jdk/src/java.xml.crypto/share/classes/org/jcp/xml/dsig/internal/dom/DOMXPathTransform.java
equal
deleted
inserted
replaced
97 Element xpathElem = DOMUtils.createElement(ownerDoc, "XPath", |
97 Element xpathElem = DOMUtils.createElement(ownerDoc, "XPath", |
98 XMLSignature.XMLNS, DOMUtils.getSignaturePrefix(context)); |
98 XMLSignature.XMLNS, DOMUtils.getSignaturePrefix(context)); |
99 xpathElem.appendChild(ownerDoc.createTextNode(xp.getXPath())); |
99 xpathElem.appendChild(ownerDoc.createTextNode(xp.getXPath())); |
100 |
100 |
101 // add namespace attributes, if necessary |
101 // add namespace attributes, if necessary |
102 @SuppressWarnings("unchecked") |
|
103 Set<Map.Entry<String, String>> entries = |
102 Set<Map.Entry<String, String>> entries = |
104 xp.getNamespaceMap().entrySet(); |
103 xp.getNamespaceMap().entrySet(); |
105 for (Map.Entry<String, String> entry : entries) { |
104 for (Map.Entry<String, String> entry : entries) { |
106 xpathElem.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:" + |
105 xpathElem.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:" + |
107 entry.getKey(), |
106 entry.getKey(), |