<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<p>Hi,
<p>Personnally I do the following :
<p>---------------------
<br>// Getting mixed content
<br>Element a = ...
<br>Element c = ...
<br>Element p = a.getParent(); // idem if you get the parent
of b element !
<br>java.util.List mixedContent = p.getMixedContent(); // Get the
mixed content of the parent ( a and c belongs to this List )
<p>// Preparing g
<br>Element b = new Element();
<br>b.addContent( "The middle" );
<p>mixedContent.add( indexOf( c ) , b ); // Javadoc : "The list is
live and modifications to it affect the element's actual content"
<br>------------------------------
<br>
<p>Really cool, isn'it ?
<br>
<p>Laurent ROMEO.
<br>
<p>elephantwalker a écrit :
<blockquote TYPE=CITE>don't know this for sure, but is there a way to "insert"
and element in a
<br>particular order?
<p>if I have elements:
<p><a>
<br> the beginning
<br></a>
<br><c>
<br> the end
<br></c>
<p>And I would like to insert <b>the middle</b> in between <a>
and <c>, how is
<br>it done?
<p>Regards,
<p>Elephantwalker
<p>_______________________________________________
<br>To control your jdom-interest membership:
<br><a href="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</a></blockquote>
<pre>--
Laurent ROMEO
Directeur Applications
AGISphere
romeo@agisphere.com
(+33)1.47.45.99.99</pre>
</html>