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);
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
2 matches
Mail list logo