Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl Monk, Perl Meditation
 
PerlMonks  

Re: how do i parse xml webpage in perl

by sauoq (Abbot)
on May 08, 2012 at 03:58 UTC ( #969364=note: print w/ replies, xml ) Need Help??


in reply to how do i parse xml webpage in perl

But it does not work if i am trying to parse it from the website.

It isn't supposed to. Did you even glance at the docs?

You'll need to use another module to fetch your content. Maybe try something like:

use strict; use warnings; use Data::Dumper; use XML::Simple; use LWP::Simple; my $parser = new XML::Simple; my $data = $parser->XMLin( get( "http://website/computers/computers_ma +in/config.xml" )); print Dumper($data);
-sauoq
"My two cents aren't worth a dime.";


Comment on Re: how do i parse xml webpage in perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2013-05-24 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (494 votes), past polls