in reply to XML::DOM help

Learning XPath might be useful for this problem. Here's how you would get your data using XML::XPath:
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
    thanks loads, xpath sure looks tons neater =) maybe i'd use that next time (adding on to someone's code now)