You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Rich Johns <rj...@vignette.com> on 2001/01/17 20:26:52 UTC
Passing String parms that containe XML
I'm trying to figure out how to pass a String
that looks like this:
String xml = "<String>Hello World</String>";
without the overhead of DOM, so I don't want
to use NS_URI_LITERAL_XML encoding which
makes everything a DOM Element.
So, the above doesn't work. So then I tried this:
"<![CDATA[<String>Hello World</String>]]>"
which also doesn't work and yields this fatal error:
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be
well-formed.
Does anyone have any suggestions on how this might be done?
Thanks.