in reply to Re^4: Not able to replace element value using XML::Twig
in thread Not able to replace element value using XML::Twig
my $twig = XML::Twig->new(); print ref $twig,"\n"; $twig->parsefile("player.xml"); my $root= $twig->root; print ref $root,"\n"; # prints: XML::Twig XML::Twig::Elt
It seems you are still using $root for the method call instead of $twig. If I use $root->print_to_file instead of $twig->print_to_file, I too get the error message that the function can't be found
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Not able to replace element value using XML::Twig
by newbie_ab (Novice) on Jan 29, 2010 at 21:18 UTC | |
by jethro (Monsignor) on Jan 29, 2010 at 21:30 UTC | |
by newbie_ab (Novice) on Jan 31, 2010 at 15:14 UTC | |
by jethro (Monsignor) on Feb 01, 2010 at 01:14 UTC |