[jdom-interest] Code examples
Edelson, Justin
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
element.
________________________________
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
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
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20060721/c1860a36/attachment.htm
More information about the jdom-interest
mailing list