Hi Radu, Apologies if I wasn't very clear before.
I had an xml element that looked like this, (but the text was much longer) <description><p>Some description</p></description> I was loading this into an xmlbeans document, but when I did a toString() on that document the XML being returned was <description><![CDATA[<p>Some description</p>]]></description> So I actually wanted to change the element to not have CDATA wrapped around the text (as the html was already escaped). I found a work around that involved using StringEscapeUtils.unescapeHtml(String str) in one of the apache libraries to unescape all the Html inside the CDATA and then it was ok to leave the CDATA around it. If you know of a way to remove the CData wrapped around a text Id still be interested to hear it :) Thanks, Andrew Radu Preotiuc-Pietro-2 wrote: > > Sorry, I must have misunderstood then. Setting CDataLengthThreshold to a > large value should do the job. > > Andrew, can you provide a sample doc for which this does not work for > you? > > Radu > > > -- View this message in context: http://www.nabble.com/Removing-CData-from-XML-Elements-tp22431700p22465264.html Sent from the Xml Beans - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

