You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Armindo Cachada <ar...@philips.com> on 2007/07/11 11:57:32 UTC

Fields which need to be enclosed in CDATA

Hi,

I have read that the 2.3.0 version documentation supports the serialization
of CDATA sections.
Is it possible to control which fields get enclosed in a CDATA section? How
can I do that?

Best Regards,
Armindo

RE: Fields which need to be enclosed in CDATA

Posted by Cezar Andrei <ce...@bea.com>.
Hi Armindo,

 

XMLBeans doesn't remember in it's internal structures if a text came
from CDATA or regular text (this is not part of the xml info-set), so
there is no way for XMLBeans to apply the CDATA only on user selected
sections. In the 2.3.0 release we added a global switch through
XmlOptions, that applies to all text sections in the document to be
saved.

 

Cezar

 

________________________________

From: Armindo Cachada [mailto:armindo.cachada@philips.com] 
Sent: Wednesday, July 11, 2007 4:58 AM
To: user@xmlbeans.apache.org
Subject: Fields which need to be enclosed in CDATA

 

Hi,

I have read that the 2.3.0 version documentation supports the
serialization of CDATA sections.
Is it possible to control which fields get enclosed in a CDATA section?
How can I do that?

Best Regards,
Armindo


Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.