in reply to Re^3: XML::Twig usage incomprehension
in thread XML::Twig usage incomprehension
I tried this method but still have no results :( Though,I'm sure that I should get some .... Is there something wrong with my code?use strict; use XML::Twig; my $t= new XML::Twig(); my $root = $t->root; $t->parsefile( 'T:\\BI\\Jerome\\xml\\tree.xml'); exit; sub job { my ($t, $root)= @_; my %job; $job{Attr_name}= $root->{'att'}->{'Name'}; $job{Attr_value}= $root->{'att'}->{'Value'}; print "$job{Attr_name}: $job{Attr_value}\n"; $root->delete; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: XML::Twig usage incomprehension
by Skeeve (Parson) on Apr 03, 2006 at 09:07 UTC |