[Expat-discuss] Custom callback functions, depending on the attribute/element value ?

Greg Martin Greg.Martin at TELUS.COM
Thu Jul 10 11:01:30 EDT 2003


Expat isn't a SAX parser is it?
Anyway, with expat you register an element handler and it gets called for each element it encounters. You would put the code in there to handle specific elements. If you want to "genericize" your element handler I'd suggest using function pointers in C or a variation of a Factory pattern for C++. 

-----Original Message-----
From: Ranganath Bhupalam [mailto:ranganath at kanrad.com]
Sent: Wednesday, July 09, 2003 10:30 PM
To: expat-discuss at libexpat.org
Subject: [Expat-discuss] Custom callback functions, depending on the
attribute/element value ?



I wud like to know if there is any means of registering custom callback
functions with the expat (SAX) parser (such that, some predefined
custom-function will be executed automatically, based on the
element/attribute value.)

Ranganath


_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss





More information about the Expat-discuss mailing list