Yeah, I'm surprised there isn't an equivalent of that in the Branch
interface. The problem with that approach(if it works) is that sureley
it doesn't link the child back to the parent. 'Course I can do that so
I guess that approach is a little better. I'd just be worried that
something else happens in add() that I'm unaware of. java's DOM has
like nextSibling() and whatnot which I imagine they store as a reference.
--Evan
Edwin Dankert wrote:
I'm not sure if this solves the problem but you can use the
java.util.List functionality to add an element at a specific index.
Please see:
http://tinyurl.com/8eump
Regards,
Edwin
--
http://www.edankert.com/
N�HY隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� [EMAIL PROTECTED],���a{�
�,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX���&�;�z���X��X���&�;�z�b��,���y�+��m����+-��.�ǟ�����+-��b�ا~�ݢn#�ǫ
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user