public Node appendChild(Node newChild) throws DOMException { if (log.isTraceEnabled()) log.trace("appendChild: " + newChild); expandToDOM(); return super.appendChild(newChild); }
/** * Creates a new Text object initialized with the given String and adds it to this SOAPElement object. * * @param value a String object with the textual content to be added * @return the SOAPElement object into which the new Text object was inserted * @throws javax.xml.soap.SOAPException if there is an error in creating the new Text object * or if it is not legal to attach it as a child to this SOAPElement */ public SOAPElement addTextNode(String value) throws SOAPException { org.w3c.dom.Node domNode; if (value.startsWith("<!--") && value.endsWith("-->")) { value = value.substring(4, value.length() - 3); domNode = element.getOwnerDocument().createComment(value); } else { domNode = element.getOwnerDocument().createTextNode(value); } javax.xml.soap.Text soapText = new TextImpl(domNode); appendChild(soapText); return this; }
public Node appendChild(Node newChild) throws DOMException { if (needsConversionToHeaderElement(newChild)) newChild = convertToHeaderElement(newChild); return super.appendChild(newChild); }
public Node appendChild(Node newChild) throws DOMException { if (needsConversionToBodyElement(newChild)) newChild = isFault(newChild) ? convertToSOAPFault(newChild) : convertToBodyElement(newChild); return super.appendChild(newChild); }
soapElement = (SOAPElementImpl) appendChild(soapElement); return soapElement.completeNamespaceDeclaration();