xerces-p-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tedsand...@rcn.com>
Subject Re: Re: How to reset a parser after errors encountered?
Date Thu, 01 Jan 1970 00:00:00 GMT

Yuck!  That's how I was getting around the problem too, but I thought there had to be a better
way.  Maybe this is something for the Xerces-C development people.

-ted


> 
> From: jason@openinformatics.com (Jason E. Stewart)
> Date: 2002/05/09 Thu AM 01:28:37 EDT
> To: xerces-p-dev@xml.apache.org
> Subject: Re: How to reset a parser after errors encountered?
> 
> "ted sandler" <tedsandler@rcn.com> writes:
> 
> > Xerces has been working great for me except for this one problem:
> > 
> > I am parsing a bunch of documents, and everything works okay until I hit a
> > bad one.  At this point, my program puts the bad document aside and attempts
> > to move onto the next document.  However, the parser keeps choking with the
> > following error:
> > 
> >   Error in `../data/a_and_c.xml':
> >   Parse may not be called while parsing
> > 
> > How does one reset the parser & its handlers so that the program can
> > continue processing documents?  I've tried calling &resetErrors but this
> > doesn't work.
> 
> I never figured out a very satisfying way to do this. Basically the
> problem is that the parsers internal state gets severely confused, and
> cannot be reset.
> 
> The only way I figured out was simply to create a new parser and use
> it instead. Like I said, not very satisfying, but it was the only
> method I could find.
> 
> jas.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 
> 


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


Mime
View raw message