in reply to XPATH DOM traverse html/xml
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; }'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XPATH DOM traverse html/xml
by benizi (Hermit) on Dec 09, 2009 at 06:18 UTC | |
by mirod (Canon) on Dec 09, 2009 at 13:18 UTC |