[Expat-bugs] [ expat-Patches-835123 ] Suspend/Resume functionality

SourceForge.net noreply at sourceforge.net
Tue Nov 4 09:28:41 EST 2003

Patches item #835123, was opened at 2003-11-03 11:25
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Karl Waclawek (kwaclaw)
Assigned to: Karl Waclawek (kwaclaw)
Summary: Suspend/Resume functionality

Initial Comment:
This patch adds suspend/resume functionality to Expat.

The API is updated as follows:
- Added XML_STATUS_SUSPENDED to enum XML_Status
- Added function XML_StopParser()
- Added function XML_ResumeParser()
- Added more error codes and strings

The parser can be stopped (aborted) or suspended by
calling XML_StopParser() from a handler call-back.
Parsing can be resumed calling XML_ResumeParser().
For details check out the description in expat.h.

This API is subject to change, especially if it should
not be included in the Epat 2.0 release, in which case
it will have to adjust to the API changes intended for
Expat 3.0.

The attached file PatchDesc.txt contains a more
detailed overview of the patch implementation.
The attached diff file is taken against current CVS
as of the submission date of this patch.


>Comment By: Karl Waclawek (kwaclaw)
Date: 2003-11-04 09:28

Logged In: YES 

I attached a new patch file that includes one added API
function: XML_GetParserState(), which exposes the parser's
state with regards to being initialized, suspended or finished, 
returning this enum:

enum XML_ParserState {

Otherwise this patch revision is the same as the previous one.


You can respond by visiting: 

More information about the Expat-bugs mailing list