bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monasterians,
Doing my first XML coding and am running into a speed bump. The following returns a error:
use strict; use Data::Dumper; use XML::Simple; my $xml = new XML::Simple (KeyAttr=>[]); my $xmlresource = "http://prlmnks.org/rss/458722.xml"; my $feed = $xml->XMLin($xmlresource); #line 20 print "Content-type: text/html\n\n"; print Dumper($feed); ERROR: File does not exist: http://prlmnks.org/rss/458722.xml at /usr/www/use +rs/highgate/admin/cgi-bin/xmltest.pl line 20
If I upload a ____.xml file to the cgi-bin directory, it finds the file without incident. The XML::Simple docs mention *file* but not URL. So, how, or with what module, would I use to pull in an xml file for parsing? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pulling in an RSS feed for parsing
by ikegami (Patriarch) on Jun 06, 2005 at 18:29 UTC | |
|
Re: Pulling in an RSS feed for parsing
by davidrw (Prior) on Jun 06, 2005 at 18:36 UTC | |
by bradcathey (Prior) on Jun 06, 2005 at 19:28 UTC | |
|
Re: Pulling in an RSS feed for parsing
by wolv (Pilgrim) on Jun 06, 2005 at 23:22 UTC | |
|
Re: Pulling in an RSS feed for parsing
by reneeb (Chaplain) on Jun 07, 2005 at 08:55 UTC | |
by lestrrat (Deacon) on Jun 07, 2005 at 13:31 UTC | |
by mrborisguy (Hermit) on Jul 06, 2005 at 13:32 UTC | |
by lestrrat (Deacon) on Jul 07, 2005 at 04:14 UTC |