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);
In reply to Re: how do i parse xml webpage in perl
by sauoq
in thread how do i parse xml webpage in perl
by mipatel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |