: 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'.
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
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
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);
4 matches
Mail list logo