xerces-p-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Garrett <philg...@gmail.com>
Subject Re: How to parse an HTTP file
Date Sat, 13 Nov 2004 21:27:04 GMT
On Sat, 13 Nov 2004 11:39:05 +0100, thomas Armstrong
<tarmstrong@gmail.com> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Mime
View raw message