Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Sort xml nodes by schema

by AlexTape (Monk)
on Sep 11, 2013 at 08:25 UTC ( #1053431=note: print w/replies, xml ) Need Help??


in reply to Sort xml nodes by schema

fyi: something crosses my mind this morning
you can output a hash in the same order as you inserted elements into it
use Tie::IxHash; tie %hash, "Tie::IxHash"; $hash{any1}="first"; $hash{some1}="second"; $hash{big1}="third"; foreach $foo (keys %hash) { print " $foo\n"; } while (( $foo, $bar ) = each %hash ) { print "$foo is $bar"; }
output should be:
>any1 is first
>some1 is second
>big1 is third
maybe XML::Simple adopt that.. dnt knw..

kindly perlig

$perlig =~ s/pec/cep/g if 'errors expected';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053431]
help
Chatterbox?
[ambrus]: I don't much like highlighting matching parenthesis, because I've had some bad experiences with distracting implementations of that.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-02-27 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.