Re: CDATA saving problem

2012-11-14 Thread VikingBlue
I tried with Following code, but nothing works, what did I miss? XmlOptions xmlOptions = new XmlOptions(); xmlOptions.setUseCDataBookmarks(); xmlOptions.setSaveCDataEntityCountThreshold(0); xmlOptions.setSaveCDataLengthThreshold(1); XmlObject response = XmlObject.Factory.newInstance(xmlOptions);

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