Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: XPATH and perl

by jbt (Chaplain)
on Aug 15, 2009 at 22:34 UTC ( [id://788940]=note: print w/replies, xml ) Need Help??


in reply to XPATH and perl

One way to do it:

use XML::DOM::XPath; my $parser= XML::DOM::Parser->new(); my $doc = $parser->parsefile ("file.xml"); my @nodes = $doc->findnodes( '/Parameter/Value/Item' ); foreach (@nodes) { print $_->getAttribute( 'Value') . "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://788940]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-18 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found