Keith,

Thanks for the response. For us, the working solution (inelegant, though it may be), is a big help. The nagging question is - how come Castor doesn't address this issue. It's a pretty big one, right?

Anyway  thanks again for the solution.

Best,

John

Keith Visco wrote:


John

It's not an elegant solution, but one way to do it is to create a Xerces XMLSerializer instance and configure it's OutputFormat to include the names of the element(s) that have text data that should be wrapped in CDATA sections.

You can then call the XMLSerializer#asContentHandler method and pass the provided ContentHandler to the Castor Marshaller.

--Keith


John Brinnand wrote:

Hi All,

I sent this out earlier. How do I include a CDATA section in castor? Something like:

<![CDATA[This is a test  ]]>.

When I try this, Castor consumes the "<" and ">" characters. What if I want to enter them as text, which seems to be the alternative left to us, since castor does not appear to to provide a way to do this? What am I missing?

Thanks,

John Brinnand

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------



-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to