dear monks my aim for the programming is to store an xml file in a hash and some process over the hash (lik change the tags of the xml file)finally i retrieve the hash file as xml i done it but when i store the xml file using XML::Simple package the output hash has not maintain the same order of the xml file so i cant get my expected output when i use Tie::Ixhash it maintain the first level of the values only it cant maintain the inner most values of the hash so please help me to get my expected output this is my sample code
use Data::Dumper; use XML::Simple; use Tie::IxHash; my %xhash=(); my $line; my $file= $ARGV[0]; tie (%xhash, 'Tie::IxHash'); my $simple = XML::Simple->new(); my $xhash = $simple->XMLin($file);
In reply to help to preserve the order of hash by satzbu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |