The stupid question is the question not asked | |
PerlMonks |
Re: XML Parse, Spanish Elementsby misterb101 (Sexton) |
on Feb 10, 2006 at 20:55 UTC ( [id://529462]=note: print w/replies, xml ) | Need Help?? |
Hi Senik, Personnally I'm not such a big fan of XML::Simple since the parsing into different types is very unconfortable. For example if a node contains one subnode, the subnode is a hash element in the node itself, with nore children it becomes an array..this is just an example, but is just to show that the parsetree is very difficult to navigate. Myself I rather use XML::XPath. Here you can use xpath queries to navigate to the nodes you want and the result is very straightforward. for you this would become something like : Hope this helps you, it saved my life more than once :)
-- Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|