Hi,

Using the List interface does work. The List returned from the getContent, 
getElements() getAttributes etc is a backed list.

This menas that the handling of the insertion or the removal of the node to the 
parent is fully handled


Javadoc is your friend :-)

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Evan Kirkconnell
> Sent: 06 January 2006 14:24
> To: Edwin Dankert
> Cc: dom4j-user@lists.sourceforge.net
> Subject: Re: [dom4j-user] Child Ordering
> 
> 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       塧m    [EMAIL PROTECTED]  ^  z Z f z j ! x2 
>        ɫ,   
> 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=ick
> _______________________________________________
> dom4j-user mailing list
> dom4j-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
> 




-------------------------------------------------------
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

Reply via email to