On the other hand there's always the good ol' fashioned way: iterating through the children until you get to element you want to insert before or after. That's probably how it'd be done in an "insert" method anyway.
b
PS: other list folks, I'd love to hear I'm wrong about this.
David Thielen wrote:
Hi;
addElement() adds an element at the end of the elements held by the parent. How can I insert a new element so it’s not placed at the end of the child elements?
Thanks - dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user