[jdom-interest] Updating CDATA block

Perry Hoekstra dutchman at uswest.net
Wed Feb 14 06:48:02 PST 2001

Greet the sun all,

I have a question concerning the updating of a CDATA block.  If I have a
tag like the following:


how would I update the CDATA block?  Right now I am having to do the

fooElement.setText(new String());  // this clears the content instance
variable found within Element
fooElement.addContent(new CDATA("<BR>Hello</BR>"));  // instance of
CDATA added to content LinkedList

Is there a better way?

Perry Hoekstra
E-Commerce Architect
Talent Software Services
perry.hoekstra at talentemail.com

More information about the jdom-interest mailing list