You also need to set setUseCDataBookmarks option to true as well. If your original xml contains CDATA, that option will ensure it is retained and will be present when you save the XML. As for setSaveCDataLengthThreshold and setSaveCDataEntityCountThreshold, both conditions must be satisfied for CDATA tag to be added.

Jerry

On 07/27/2012 02:05 AM, Jurica Krizanic wrote:
Hello,
I am uxing XMLBeans 2.5.0 and having an issue with saving XML to the file.. When the XML is saved to the file, CDATA section marks are removed, but content inside the CDATA remains in the file.

I would like CDATA marks also remain in the file.

I was trying to set XMLOptions with setSaveCDataLengthThreshold() and setSaveCDataEntityCountThreshold() methods, browsing through already asked questions on the mailing list, but I can't get it work correctly.

Can someone provide any help?


Thank you in advance!

Best regards,
Jurica Krizanic




Reply via email to