Radu,
don't you think he means when marshalling XMLBeans to xml
(rather then unmarshalling from xml)?
On another subject, do you know the answer to the user question
about missing generated methods (according to the user guide)?
- Wing Yew

-----Original Message-----
From: Radu Preotiuc [mailto:[email protected]] 
Sent: Wednesday, March 11, 2009 2:09 PM
To: [email protected]
Subject: Re: Removing CData from XML Elements

I am not sure I understand you use-case correctly, but if you want
XMLBeans to act as though CDATA sections were not there while loading
documents, then of course that is not possible. CDATA is just a way of
encoding XML text and so what you are asking for is selectively remove
some of the content from the input doc.

Radu

On Tue, 2009-03-10 at 06:42 -0400, acowlin wrote:
> 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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to