Syntactic Confectionery Delight | |
PerlMonks |
Re^6: trying to understand xml::twig and also trying to learn how to extract attributeby convenientstore (Pilgrim) |
on Nov 06, 2008 at 15:03 UTC ( [id://722016]=note: print w/replies, xml ) | Need Help?? |
can I just specify first_child of any element within the root? first_child ($optional_condition) Return the first child of the element, or the first child matching the $optional_condition for e.g., given below xml, in order to get to <getthis value="found" />, do I always have to go OR can I just pick the element like Another words, is first_child definition the child of the root?(in this case , 'one' and then 'traffic' and then so on.. and therefore need to go down the chain in steps or can I say my parent is one and then first child is 'getthis' ?
In Section
Seekers of Perl Wisdom
|
|