Re: How to parse an HTTP file

Philip Garrett <[email protected]> Sat, 13 Nov 2004 16:27:04 -0500
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
On Sat, 13 Nov 2004 11:39:05 +0100, thomas Armstrong
<[email protected]> wrote:
> Hi.
> 
> I'm trying to parse a HTTP file
> http://www.foo.com/foo.xml
> 
> ------------------------------------------
> use XML::Xerces;
> 
> my $file  = XML::Xerces::LocalFileInputSource->new("http://www.foo.com/foo.xml");

A URL isn't a local file.  Use URLInputSource instead, e.g.:
  my $url = "http://www.foo.com/foo.xml";
  my $file = XML::Xerces::URLInputSource->new($url);

Philip