I've just released version 0.20 of the module which supports
"use_ixhash" option.
XML::TreePP Version 0.20 now allows:
my $tpp = XML::TreePP->new( use_ixhash => 1 );
my $tree = $tpp->parse( $somexml );
Every hash in $tree uses Tie::IxHash module to keep the order for each
child element.
Thank you!
See:
http://www.kawa.net/works/perl/treepp/treepp-e.html
----
Kawasaki Yusuke
Show quoted text> Tue Nov 21 07:02:19 2006: Request 23522 was acted upon.
> Transaction: Ticket created by RENEEB
> Queue: XML-TreePP
> Subject: keep order of tags
> Broken in: (no value)
> Severity: Wishlist
> Owner: Nobody
> Requestors: RENEEB@cpan.org
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=23522 >
>
>
> It would be nice if the tree keeps the order of the tags. It's just a
> small change:
>
> ~/cpan/XML 402> diff TreePP.pm TreePP_old.pm
> 270d269
> < use Tie::IxHash;
> 595,598c594
> <
> < tie my %ixhash,'Tie::IxHash';
> <
> < my $tree = \%ixhash;
> ---
> > my $tree = {};