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 Jerald Dawson <jd...@mrk.com> on 2000/10/02 19:39:56 UTC
passing an URL to the parser
I'm a bit confused about how to pass an URL to the SAX parser. I've looked
at the API docs and see where it says that the ability is there but can't
figure out what object I need to instantiated to make it happen. Any
pointers would be appreciated.
TIA
Jerald Dawson
Re: passing an URL to the parser
Posted by Jerald Dawson <jd...@mrk.com>.
Thanx for the info. However, it looks like from the docs that these classes
only support either file:// or http://localhost URLS. I need to be able to
reach across the net and grab something.
thanx
Jerald Dawson
> From: "Radovan Chytracek" <Ra...@cern.ch>
> Reply-To: xerces-c-dev@xml.apache.org
> Date: Mon, 2 Oct 2000 23:06:13 +0200
> To: <xe...@xml.apache.org>
> Subject: RE: passing an URL to the parser
>
> HI,
>
> look at the URLInputSource and InputSource classes. Its instance can be
> passed as the argument to parser's parse(..) method.
>
> Hope this helps
>
> Radovan
>
>
>> I'm a bit confused about how to pass an URL to the SAX parser. I've looked
>> at the API docs and see where it says that the ability is there but can't
>> figure out what object I need to instantiated to make it happen. Any
>> pointers would be appreciated.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: passing an URL to the parser
Posted by Radovan Chytracek <Ra...@cern.ch>.
HI,
look at the URLInputSource and InputSource classes. Its instance can be
passed as the argument to parser's parse(..) method.
Hope this helps
Radovan
> I'm a bit confused about how to pass an URL to the SAX parser. I've looked
> at the API docs and see where it says that the ability is there but can't
> figure out what object I need to instantiated to make it happen. Any
> pointers would be appreciated.