Hi,
I am preety new to xmlbeans, i am faceing a problem with setStringValue
method, when i am passing the string content within this method , it should
wrap in CDATA , but in some case iy will wrap and some other case its dont
wrap the CDATA, i have tried with all the possible option. but it does not
work, i need CDATA should be wrapped for every string within setString
value. Please suggest. Thanks In Advanced.
XmlOptions opts = new XmlOptions();
opts.setSaveCDataEntityCountThreshold(-1);
opts.setSaveCDataLengthThreshold(0);
Alex Florentino wrote:
>
> I am using the xmlbeans 2.3.0
>
> I have a document that have another xml document sample:
>
> <OTAHotel>
> <Message>
> <!-- another xmldocument -->
> <CONFIRMMESSAGE>
> </CONFIRMMESSAGE>
> </Message>
> </OTAHotel>
>
> the problem is that xmlbeans put this xml content(CONFIRMMESSAGE) how
> cdata
> content, and my third-partner don't is be able handler it.
>
> I need that xmlbeans don't put the content as CDATA .
>
> I already try use XmlOptions :
>
> public XmlOptions
> <file:///home/alex/Desktop/xmlbeans-2.3.0/docs/reference/org/apache/xmlbeans/XmlOptions.html>
> *setSaveCDataLengthThreshold*(int cdataLengthThreshold)
> public XmlOptions
> <file:///home/alex/Desktop/xmlbeans-2.3.0/docs/reference/org/apache/xmlbeans/XmlOptions.html>
> *setSaveCDataEntityCountThreshold*(int cdataEntityCountThreshold)
>
> setSaveCDataLengthThreshold(10000000)
> setSaveCDataEntityCountThreshold(-1)
> *
> *and another combinations and still the document is generated with cdata.
>
> Someone have anyone idea how I resolve it ?
>
> thanks a lot,
>
> Alex Florentino
>
>
--
View this message in context:
http://old.nabble.com/XMLBEANS-2.3.0-and-CDATA-issue-tp16006245p28534127.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]