Hi, I have no idea what is going on here. Have you tried setting validation to never? I suppose its possible that its trying to get a dtd form the net.
Gareth On Wed, 18 Jun 2003, Shah, Neelay wrote: > Hi, > Thanks for the reply. > I don't think that I can upgrade to a newer version of the parser. > But, is there any way to know what the Parser is doing or what is it waiting > for ? > Because, once I call "parse(InputSource, false)" the call reaches my > "resetDocument() and then "startDocument()" method almost > immediately but it reaches the "startElement" method 3 min. later. > Is there any way to turn the xerces parser logging ? > Also, after this, further invocations of the parse() method return immediately > (about 5-7 seconds). > I don't need to validate the XML against any DTD. Is there any way by which I > can make the parse operation fast ? > > Thanks, > Neelay S Shah > > -----Original Message----- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Monday, June 16, 2003 9:48 PM > To: [EMAIL PROTECTED] > Subject: Re: Xerces Newbie > > > Hi, > you are using a very old parser which I dont even have the docs > for. Can you upgrade to a more recent one? > > Gareth > > > > On Mon, 16 Jun 2003, Shah, Neelay wrote: > > > Hi, > > I have some C++ code which parses different XML documents on the same thread > > one after the another. > > I am using Xereces 1.5.1 parser. > > > > The following is my problem: > > > > When I call the parse() method I have observed that sometimes it take > > a lot of time (approx. 3 min) before > > it calls my "startElement" method. After that all the remaining > > parse's are very fast. approx 3-4 seconds each. > > The XML Documents are not very large also. > > Generally, it hangs for 3 minutes during the second invocation. > > > > Have I missed out anything OR do I have to call a particular API () before > > calling parse(). > > > > I have also tried adding the following code to avoid validating and make it > > quicker but it did not work either: > > > > pSAXParser->setValidationScheme (SAXParser::Val_Never); > > pSAXParser->setDoNamespaces (false); > > pSAXParser->setDoSchema (false); > > > > Please Reply, > > > > Thanks, > > Neelay > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- Gareth Reakes, Head of Product Development +44-1865-203192 DecisionSoft Limited http://www.decisionsoft.com XML Development and Services --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]