[jdom-interest] Code examples

Heise, Robert Robert.Heise at Peopleclick.com
Fri Jul 21 06:19:34 PDT 2006

Does anybody have any code examples for adding and removing Elements in
a JDOM Document using addContent/removeContent? 

When using the addContent method Im receiving the following trace:
org.jdom.IllegalAddException: Cannot add a second root element, only one
is allowed

Im struggling with adding using the index option as well, so any
examples would help me figure out what Im doing wrong.

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20060721/af0c6f60/attachment.htm

More information about the jdom-interest mailing list