Hi,

I am trying to parse an Xml document with a "description" tag that contains
html that has already been "entitised". Because of this I do not want to
place it in a CData but XmlBeans seems to be doing this automatically for me
and I can't stop it. 

The element in the schema is simple, it's just:
 <xs:element name="description" type="xs:string" minOccurs="0" />

I've tried providing some options when initially parsing the xml, such as:
      options.setSaveCDataLengthThreshold(100000000);
      options.setSaveCDataEntityCountThreshold(-1);

But these don't seem to do anything.

Ideally what I want to do is just switch CData off for the entire document,
so no CData tags are included. 

Does anyone know of a way to do this? 

Many thanks,

Andrew
-- 
View this message in context: 
http://www.nabble.com/Removing-CData-from-XML-Elements-tp22431700p22431700.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]

Reply via email to