|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Parsing XML with XML::Simpleby Preceptor (Deacon) |
| on Jul 05, 2016 at 09:22 UTC ( [id://1167214]=note: print w/replies, xml ) | Need Help?? |
|
I would refer you to this, on the problems with XML::Simple: Why is XML::Simple "discouraged" I would strongly suggest looking at XML::Twig instead - as an easy-to-use XML parser, that _actually_ does XML, and not some nasty hack job. If you do, your code becomes something like this:
You can, if you prefer, also use "first_child" and "children" to navigate the XML:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||