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);
|
|---|