m0ve has asked for the wisdom of the Perl Monks concerning the following question:
my code looks like this :<fall_liste> <fall ID="1"> <schein_liste> <schein ID="1"> <fk8000 V="0132"> <fk7199 V="12" BKZ="%!" /> <fk3000 V="134520" /> <fk3101 V="Doe" /> <fk3102 V="Joe" /> .....
my question is how can i do something likemy $twig= new XML::Twig(twig_handlers => { '/kvdt/datei_liste/datei +/fall_liste/fall' => \&fall } sub fall{ my( $twig, $element)= @_; my @scheine = $element->get_xpath('./schein_liste/schein/*/*'); for(@scheine){ <do various things> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: xml::twig and node names
by mirod (Canon) on Sep 18, 2007 at 08:07 UTC | |
by m0ve (Scribe) on Sep 21, 2007 at 07:45 UTC | |
by m0ve (Scribe) on Sep 18, 2007 at 08:27 UTC | |
|
Re: xml::twig and node names
by m0ve (Scribe) on Sep 20, 2007 at 08:11 UTC | |
by m0ve (Scribe) on Sep 21, 2007 at 08:33 UTC |