TextImplEx saajTextNode =
new TextImplEx(text.getData(), parent, prevSiblingDOMNode, nextSiblingDOMNode);
((NodeImpl)domNode).setUserData(SAAJ_NODE, saajTextNode, null);
return saajTextNode;
} else if (domNode instanceof org.w3c.dom.Comment) {
Comment comment = (Comment)domNode;
org.w3c.dom.Node prevSiblingDOMNode = comment.getPreviousSibling();
org.w3c.dom.Node nextSiblingDOMNode = comment.getNextSibling();
SOAPElementImpl parent = new SOAPElementImpl((ElementImpl)domNode.getParentNode());
TextImplEx saajTextNode = new TextImplEx("<!--" +
comment.getData() +
"-->",
parent, prevSiblingDOMNode,
nextSiblingDOMNode);
((NodeImpl)domNode).setUserData(SAAJ_NODE, saajTextNode, null);
return saajTextNode;