X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : NT
WebContainer : Tomcat 3.3.1
JDK Version : 1.3.1_01
Hello,
When I try to modify a XML with a CDATA element the XApplication Java API fails with the error:
“content not supported: class org.jdom.CDATA”.
Example:
This xml is Tamino:
------------------
Test of CDATA
< ![CDATA[
This is a Test
]]>This code try to modify the xml document:
----------------------------------------
docCursor = ws.query(“testList”, “test”);
if (docCursor.hasNext()) {
doc = (BusinessDocument)docCursor.next();
doc.modify(); // <–the program fails here!
doc.getDescendant(“/test/name”).setValue(“N”);
doc.getDescendant(“/test/x”).setValue(“< ![CDATA[
subt
]]>”);doc.commit();
doc.close();
}
Thanks and regards,
Guillermo Avendaño
[This message was edited by Christian Freytag on 21 Mar 2003 at 07:46.]