RE: Cannot get CDATA to work

2010-06-09 Thread Cezar Andrei
: user@xmlbeans.apache.org Subject: Re: Cannot get CDATA to work After digging into the codes, I found out that StaxUtils is responsible to decide whether it's 'CHARACTER' or 'CDATA'. The XMLStreamReader used is 'com.sun.xml.fastinfoset.stax.StAXDocumentParser'.

Re: Cannot get CDATA to work

2010-06-01 Thread Christopher Cheng
After digging into the codes, I found out that StaxUtils is responsible to decide whether it's 'CHARACTER' or 'CDATA'. The XMLStreamReader used is 'com.sun.xml.fastinfoset.stax.StAXDocumentParser'. It looks like that after XMLBeans passed the XMLDocument to StAXDocumentParser, at line 381 of StAXDo

Cannot get CDATA to work

2010-05-31 Thread Christopher Cheng
I went thru a few posts in this list, but still no luck to get CATA to work. I am using xmlbeans version 2.4. What's wrong with the followings? node.setKey("ABCDEFG"); XmlCursor c = node.xgetKey().newCursor(); c.toFirstContentToken(); c.setBookmark(CDataBookmark.CDATA_BOOKMARK); System.out.println

Cannot get CDATA to work

2010-05-31 Thread Christopher Cheng
I went thru a few posts in this list, but still no luck to get CATA to work. I am using xmlbeans version 2.4. What's wrong with the followings? XmlCursor c = node.xgetKey().newCursor(); c.toFirstContentToken(); c.setBookmark(CDataBookmark.CDATA_BOOKMARK); System.out.println(node);