You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Cory Isaacson <ci...@capita2.com> on 2000/08/25 00:18:07 UTC
LITERAL XML Encoding Question
This may not be the appropriate list for this question, but if anyone can help that would be great.
I have a Document DOM object I'm building in a SOAP provider class on the server side, and using Literal XML serialization to pass it back to the client. It works fine, but what I get back is the root Element, not the Document itself. I need it to be in a document to manipulate it properly.
I tried something like this on the client side:
XMLParserLiaison xpl = new XercesParserLiaison();
Document doc = xpl.createDocument();
doc.addChild(returnElement);
But Xerces complains that its a 'wrong document'. There must be an easy way to do this. Any ideas?
Thanks,
Cory