[Expat-discuss] Exiting expat handlers

Firas Abughazaleh firas@apexion.com
Thu, 17 Oct 2002 13:29:02 +0300


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
Hi Warren,

I see your point here. I just found out that i can use: void XMLPARSEAPI =
XML_UseParserAsHandlerArg(XML_Parser parser); expat API. Or simply pass =
my parser instance as a parameter to the userdata member of callbacks. I =
am using the C library of expat.
Now, if an error occurs, i can just call =
XML_FreeParser(myparserinstance); safely inside my handler procedure? I =
am using a C++ wrapper class for the C expat APIs.

Thanks,
- Firas


----- Original Message -----=20
From: "Warren Crossing" <wcrossing@companywatch.net>
To: "Firas Abughazaleh" <firas@apexion.com>; =
<expat-discuss@libexpat.org>
Sent: Thursday, October 17, 2002 1:00 PM
Subject: RE: [Expat-discuss] Exiting expat handlers


> The first parameter of the callback sub is a reference to the parser!?
> When you encounter an application specific error can you call =
release()
> and/or finish() ?
> are you using lib expat for perl or c?
>=20
> regards
>=20
> warren?
>=20
> > -----Original Message-----
> > From: Firas Abughazaleh [SMTP:firas@apexion.com]
> > Sent: Thursday, October 17, 2002 10:47 AM
> > To: expat-discuss@libexpat.org
> > Subject: [Expat-discuss] Exiting expat handlers
> >=20
> > Hi all,
> >=20
> > Anyone knows how can you exit an instance of expat gracefully if you =
were
> > inside an element handler and you encountered an error inside it?
> >=20
> > Thanks,
> > - Firas
> >=20
> >=20
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This message is intended only for the addressee and may=20
> contain information that is confidential or privileged.=20
> Unauthorised use is strictly prohibited and may be unlawful.
>=20
> If you are not the addressee, you should not read, copy,=20
> disclose or otherwise use this message, except for the
> purpose of delivery to the addressee. If you have received
> this in error, please delete and advise us immediately.
>=20
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Although Company Watch makes every reasonable effort to keep
> its network and systems free from viruses, the company
> accepts no responsibility for computer viruses transmitted
> through this mail or in any attachments. It is your
> responsibility to virus scan any attachments we send to you.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
>=20
> 
---------------------- multipart/alternative attachment--