Re: Question regarding XML::Twig and parsing subelements of an XML-Tree

2011-04-16 Thread Werner
Hi, that did the trick: @directors = $elt->first_child('DIRECTOR_LIST')->children_text('DIRECTOR'); now, every director is listet in @directors-array =) Bye, Werner -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.

Re: Question regarding XML::Twig and parsing subelements of an XML-Tree

2011-04-16 Thread Werner
Hi, # something like the following also doesn't work :( @directors = $elt->first_child('DIRECTOR_LIST')->children('DIRECTOR'); i get the following error: "Can't call method "first_child" on an undefined value at test.pl line 53." regards, Werner -- To unsubscribe, e-mail: beginners-unsubscr..

Question regarding XML::Twig and parsing subelements of an XML-Tree

2011-04-16 Thread Werner
Hi everybody, this XML-thing ist currently driving me nuts :) let's assume i have the following XML-Tree as input: # - file.xml --- # Name of the Movie 28372382 This is a long description s