<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Code examples</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Does anybody have any code examples for adding and removing Elements in a JDOM Document using addContent/removeContent? </FONT></P>

<P><FONT SIZE=2 FACE="Arial">When using the addContent method Im receiving the following trace:</FONT>

<BR><FONT SIZE=2 FACE="Arial">org.jdom.IllegalAddException: Cannot add a second root element, only one is allowed</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Im struggling with adding using the index option as well, so any examples would help me figure out what Im doing wrong.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance</FONT>

<BR><FONT SIZE=2 FACE="Arial">Rob</FONT>
</P>

</BODY>
</HTML>