Mike Evans
Tue, 10 May 2005 10:06:24 -0700
Hi All,
public List getOrderedChildren( Element parent ) {
List backedList = parent.elements();
if ( !backedList.isEmpty() ) {
List children = new ArrayList( backedList );
Collections.sort( children, myComparator );
return children;
}
return Collections.EMPTY_LIST;
}Many thanks,
Mike E.
-- Mike Evans Incremental Ltd. www.incremental.eu.com
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user