You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mickael Gasrel <Mi...@europe.tgs.com> on 2000/10/13 17:26:25 UTC
pb parser
Hi everybody,
I use the xerces parser version 1.2 for win32.
My program doesn't work when I want parse an xml file via an URL.
....
DOMParser parser = new DOMParser ();
.....
parser->parse (toto.xml) ; -> the file is correctly parsed
parser->parse (http://www.titi.com/toto.xml) ; -> error, the file isn't parsed
I don't use a dtd file for the parsing.
What can I do ?
Thanks.
Mike
Re: pb parser
Posted by Jerald Dawson <jd...@mrk.com>.
the parser does not support remote urls directly. You need to either write
your own input stream object or use the NetAccessor class.
From: "Mickael Gasrel" <Mi...@europe.tgs.com>
Reply-To: xerces-c-dev@xml.apache.org
Date: Fri, 13 Oct 2000 17:26:25 +0200
To: <xe...@xml.apache.org>
Subject: pb parser
Hi everybody,
I use the xerces parser version 1.2 for win32.
My program doesn't work when I want parse an xml file via an URL.
....
DOMParser parser = new DOMParser ();
.....
parser->parse (toto.xml) ; -> the file is correctly parsed
parser->parse (http://www.titi.com/toto.xml) ; -> error, the file isn't
parsed
I don't use a dtd file for the parsing.
What can I do ?
Thanks.
Mike