if (NameImpl.SOAP11_NAMESPACE.equals(namespaceUri)) {
ownerDocument = new SOAPPart1_1Impl().getDocument();
} else if (NameImpl.SOAP12_NAMESPACE.equals(namespaceUri)) {
ownerDocument = new SOAPPart1_2Impl().getDocument();
} else {
ownerDocument = new SOAPDocumentImpl(null);
}
}
SOAPElement newElement =
createNamedElement(ownerDocument, localName, prefix, namespaceUri);