Maybe if you explain why you think the data has to be treated as CDATA, someone might have a better solution. I find it's often better to describe "what" I'm trying to accomplish, instead of "how" I'm trying to accomplish it, since the latter might be wrong.
Ron -----Original Message----- From: Radovanovic, Vladan [mailto:[email protected]] Sent: Tuesday, May 26, 2009 12:26 PM To: [email protected] Subject: When will CXF treat an element as CDATA? Please excuse my ignorance but I hope someone can help me out with this simple issue. I have simple web service that's returning xml document as a response. I simply can't figure out what document needs to have in order for CXF to surround that response with <![CDATA[ ]] tag? It seems to me CXF uses XMLStreamWriter.writeCData which is triggered when parser determines that the event is XMLStreamConstants.CDATA but again...what exactly needs to be in that node for parser to treat is as CDATA? TIA
