本文整理了Java中javax.xml.soap.SOAPElement.setAttributeNodeNS()
方法的一些代码示例,展示了SOAPElement.setAttributeNodeNS()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPElement.setAttributeNodeNS()
方法的具体详情如下:
包路径:javax.xml.soap.SOAPElement
类名称:SOAPElement
方法名:setAttributeNodeNS
暂无
代码示例来源:origin: com.hynnet/xws-security
public Attr setAttributeNodeNS(Attr arg0) throws DOMException {
return delegateElement.setAttributeNodeNS(arg0);
}
代码示例来源:origin: com.hynnet/xws-security
public Attr setAttributeNodeNS(Attr arg0) throws DOMException {
return delegateHeader.setAttributeNodeNS(arg0);
}
代码示例来源:origin: com.hynnet/xws-security
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException {
return delegateElement.setAttributeNodeNS(newAttr);
}
代码示例来源:origin: com.hynnet/xws-security
public Attr setAttributeNodeNS(Attr arg0) throws DOMException {
return delegateElement.setAttributeNodeNS(arg0);
}
代码示例来源:origin: apache/servicemix-bundles
private SOAPElement convertToSoapElement(Element element) throws SOAPException {
if (element instanceof SOAPElement) {
return (SOAPElement) element;
}
SOAPElement copy = createElement(
element.getLocalName(),
element.getPrefix(),
element.getNamespaceURI());
Document ownerDoc = copy.getOwnerDocument();
NamedNodeMap attrMap = element.getAttributes();
for (int i=0; i < attrMap.getLength(); i++) {
Attr nextAttr = (Attr)attrMap.item(i);
Attr importedAttr = (Attr)ownerDoc.importNode(nextAttr, true);
copy.setAttributeNodeNS(importedAttr);
}
NodeList nl = element.getChildNodes();
for (int i=0; i < nl.getLength(); i++) {
org.w3c.dom.Node next = nl.item(i);
org.w3c.dom.Node imported = ownerDoc.importNode(next, true);
copy.appendChild(imported);
}
return copy;
}
内容来源于网络,如有侵权,请联系作者删除!