F
Francesco Moi
Hi.
I'm trying to parse a HTTP file
http://www.foo.com/foo.xml
by using Xerces-Perl:
------------------------------------------
use XML::Xerces;
my $file = XML::Xerces::LocalFileInputSource->new("http://www.foo.com/foo.xml");
my $parser = XML::Xerces::XercesDOMParser->new();
eval { $parser->parse($file); };
error($@,"Couldn't parse file: $ARGV[0]") if $@;
my $doc = $parser->getDocument();
I'm trying to parse a HTTP file
http://www.foo.com/foo.xml
by using Xerces-Perl:
------------------------------------------
use XML::Xerces;
my $file = XML::Xerces::LocalFileInputSource->new("http://www.foo.com/foo.xml");
my $parser = XML::Xerces::XercesDOMParser->new();
eval { $parser->parse($file); };
error($@,"Couldn't parse file: $ARGV[0]") if $@;
my $doc = $parser->getDocument();