Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: XML Parsing,by saberworks (Curate) |
on Sep 09, 2009 at 22:37 UTC ( [id://794468]=note: print w/replies, xml ) | Need Help?? |
Use Data::Dumper to print out the $config variable after you parse it. Do this with the bad file and with a good file so you can spot the difference. As the first commenter mentioned, you can likely pass an option to XMLIn called ForceArray so the Vehicle element is always an array (but will likely do it to other elements as well).
In Section
Seekers of Perl Wisdom
|
|