Hello,
How about such example:
I want to output very simple XML:
...
...
Now I am doing it this way:
...
XmlOptions opts = new XmlOptions();
opts.setUseCDataBookmarks();
final XmlLogEntry xmlEntry = XmlLogEntry.Factory.newInstance(opts);
xmlEntry.setCode("ohohod");
XmlCursor c = xmlEnt
elps,
> Radu
>
> > -Original Message-
> > From: Bryce Fosdick
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 20, 2008 3:35 PM
> > To: user@xmlbeans.apache.org
> > Subject: RE: CDATA Example
> >
> >
> > I understand the purpose of CDAT
etBookmark(CDataBookmark.CDATA_BOOKMARK);
Hope this helps,
Radu
> -Original Message-
> From: Bryce Fosdick
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 3:35 PM
> To: user@xmlbeans.apache.org
> Subject: RE: CDATA Example
>
>
> I understand the purpose of CDAT
within the complexType node, containing more properties than just key.
-Original Message-
From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED]
Sent: Tue 5/20/2008 4:52 PM
To: user@xmlbeans.apache.org
Subject: Re: CDATA Example
CDATA is not supposed to work like that. CDATA is an escape
CDATA is not supposed to work like that. CDATA is an escape mechanism.
Calling node.setKey("") is almost certainly not
what you want. Call node.setKey("ABCDE12345") instead. But anyway, you
need to refer to the XML spec or an XML book to learn more about CDATA
first, to avoid some of the frustrati
Ok so I downloaded the 2.4 source, and updated everything needed to get it
working but I am still having problems using the CDATA.
If I create a Key xmlobject, the setUseCDataBookmarks seems to be working
correctly because if I print the xmlText it displays
The problem is I am trying use no
In regards to CDATA handling, in XMLBeans < 2.3 there is no way to
influence the algorithm that XMLBeans uses to decide when to put a CDATA
in the output document and when not to (please note, that from the XML
Infoset point of view, use of CDATA section is not relevant as far as
the content of the
7 matches
Mail list logo