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 "McKerral, Cameron" <mc...@anz.com> on 2002/07/30 02:24:50 UTC
RE: WELCOME to xerces-c-dev@xml.apache.org
Hi,
I just started using the Xerces C library to write a XML parser, and it
looks pretty good. I've been looking through the sample code and modified a
few of them to get them to do what I need ... but I've tried to use the
parser.parse(<XMLURL>) call to get my XML source straight from a URL, and
while it works, it takes about 15-30 seconds each time to do the call the my
local web server. Previously I have been using Expat/WinInet/C to do this
but have been trying to migrate to Xerces/C++.
Here is a sample of my code that takes 15-30 seconds ... any suggestions?:
XMLURL *url = new XMLURL("http://202.2.20.113/test.xml");
URLInputSource *inputSrc = new URLInputSource(*url);
parser->parse(*inputSrc);
I have seen talk of the XMLNetAccessor class, but am unsure if this is
necessary, or of how to use it ... can anyone point me to a simple example
that shows how to use it to get XML from an URL and parse it out?
Thanks,
Cam
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: WELCOME to xerces-c-dev@xml.apache.org
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
Are you saying that you did the same with expat and it was faster?
How long does it take on your web connection to just download the file and
how long does it take it you just locally parse the file?
Gareth
On Tue, 30 Jul 2002, McKerral, Cameron wrote:
> Hi,
>
> I just started using the Xerces C library to write a XML parser, and it
> looks pretty good. I've been looking through the sample code and modified a
> few of them to get them to do what I need ... but I've tried to use the
> parser.parse(<XMLURL>) call to get my XML source straight from a URL, and
> while it works, it takes about 15-30 seconds each time to do the call the my
> local web server. Previously I have been using Expat/WinInet/C to do this
> but have been trying to migrate to Xerces/C++.
>
> Here is a sample of my code that takes 15-30 seconds ... any suggestions?:
> XMLURL *url = new XMLURL("http://202.2.20.113/test.xml");
> URLInputSource *inputSrc = new URLInputSource(*url);
> parser->parse(*inputSrc);
>
> I have seen talk of the XMLNetAccessor class, but am unsure if this is
> necessary, or of how to use it ... can anyone point me to a simple example
> that shows how to use it to get XML from an URL and parse it out?
>
> Thanks,
> Cam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org