in reply to XML::DOM help
use XML::XPath; my $xp = XML::XPath->new(ioref => \*DATA); my $nodeset = $xp->find('/track/el/attribute[@name="type"]/text()'); # foreach my $node ($nodeset->get_nodelist) { print "FOUND\n\n", $node->getValue, "\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::DOM help
by huiling (Initiate) on Jul 10, 2008 at 07:58 UTC |