javax.xml.soap.SOAPElement.setAttributeNodeNS()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中javax.xml.soap.SOAPElement.setAttributeNodeNS()方法的一些代码示例,展示了SOAPElement.setAttributeNodeNS()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPElement.setAttributeNodeNS()方法的具体详情如下:
包路径:javax.xml.soap.SOAPElement
类名称:SOAPElement
方法名:setAttributeNodeNS

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;
}

相关文章

微信公众号

最新文章

更多