CDATA saving problem

2012-07-27 Thread Jurica Krizanic
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

Re: CDATA saving problem

2012-07-27 Thread jerry . sy
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