|Problems? Is your data what you think it is?|
trying to understand xml::twig and also trying to learn how to extract attributeby convenientstore (Pilgrim)
|on Nov 04, 2008 at 22:31 UTC||Need Help??|
convenientstore has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I am trying to learn and use XML with perl but because of difficulty that I am having with the perldoc XML::Twig and also the website of twig(despite all the tutorials, I decide to seek for help here. honestly, I just don't think I am getting it.
Anyway, I have fairly complicated XML file I want to parse out so that I can do some report on it but I am just not sure how to use XML::Twig nor if XML::Twig is even the right module to use.
I have been
1)trying to read the doc but honestly, it's little bit over my head...
2)trying to follow the tutorials on the website but it's not giving me what I want..(i am sure I am just not getting it .. same for 1) as well but
3)also did super seach on perlmonks w/ following key words ---> xml twig and read pretty much read all posts)
I have wrote a example xml file below and my question is, if I wanted to make a array of id so that my @array will contain qw/ msn movies espn/ how would I go about doing it?
I was thinking somehow using first_child method?
Would appreciate the pointer/advise.