[jdom-interest] Code examples
Justin.Edelson at mtvn.com
Fri Jul 21 06:48:12 PDT 2006
A Document can contain only one child Element. You should use the
setRootElement()/getRootElement() methods to change the document's root
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of Heise, Robert
Sent: Friday, July 21, 2006 9:20 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Code examples
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
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...
More information about the jdom-interest