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!
In reply to Pulling in an RSS feed for parsing by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |