Think about Loose Coupling | |
PerlMonks |
Re^3: XML::Simple doesn't workby grantm (Parson) |
on Nov 28, 2005 at 23:34 UTC ( [id://512433]=note: print w/replies, xml ) | Need Help?? |
But I'm still confused why the following code is not working If you don't enable the KeepRoot option (and you generally don't want it enabled), then the outermost tags from your XML will not be in the resulting hashref. So here's a version that's probably closer to what you want:
The fact that you're not specifying any options at all in you XMLin() call is a big red flag. This article gives some background on the basic options you ought to be using. I thought XML::Simple was simple :( Well, the single biggest shortcoming of XML::Simple is that it can't read your mind :-) This article has some advice on using LibXML instead.
In Section
Seekers of Perl Wisdom
|
|