Problems? Is your data what you think it is? | |
PerlMonks |
Re: XPATH DOM traverse html/xmlby mirod (Canon) |
on Dec 08, 2009 at 16:11 UTC ( [id://811780]=note: print w/replies, xml ) | Need Help?? |
I don't know which module you use, but with XML::Twig you can use the xpath method like this, for example: perl -MXML::Twig -E'my $t=XML::Twig->parse( "my.xml"); foreach my $e ($t->descendants( "#ELT")) { say $e->xpath; }'
In Section
Seekers of Perl Wisdom
|
|