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 "Shah, Neelay" <Ne...@BindView.com> on 2003/06/16 16:25:30 UTC

Xerces Newbie

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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Xerces Newbie

Posted by Gareth Reakes <ga...@decisionsoft.com>.
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: 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  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org