Re: CDATA Example

2010-06-21 Thread wodzuuu
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

Re: CDATA Example

2008-06-04 Thread Bryce Fosdick
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

RE: CDATA Example

2008-05-28 Thread Radu Preotiuc-Pietro
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

RE: CDATA Example

2008-05-20 Thread Bryce Fosdick
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

Re: CDATA Example

2008-05-20 Thread Radu Preotiuc-Pietro
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

Re: CDATA Example

2008-05-19 Thread Bryce Fosdick
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

RE: CDATA Example

2008-05-16 Thread Radu Preotiuc-Pietro
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