in reply to XML::DOM sort
This is why I hate the (excessively verbose) DOM:
my @sorted = map { $_->[1] } sort { $a->[0] cmp $b->[0] } map { my $item = $nodes->item( $_ ); [ $item->getAttributeNode( 'name' )->getValue(), $item ] } 0 .. $nodes->getLength() ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::DOM sort
by Murcia (Monk) on Jun 05, 2003 at 07:06 UTC |