I just want to find the way of disable the sort operation in XML::Simple
For example:
#!/usr/bin/perl
use strict;
use warnings;
use XML::Simple;
my %my_xml = (
NAME => [ 'test' ],
EMAIL => [ '[email protected]' ],
ID => 12,
);
my $xs = XML::Simple->new;
print $xs->XMLout(\%my_xml, RootName => "datas", NoSort => 1);
__END__
I get following output:
<datas ID="12">
<EMAIL>[email protected]</EMAIL>
<NAME>test</NAME>
</datas>
But I want the output to be:
<datas ID="12">
<NAME>test</NAME>
<EMAIL>[email protected]</EMAIL>
</datas>
How can I achieve this?