Re: Get'ter functions for xml handler(s)
"Karl Waclawek" <[email protected]> Thu, 20 Sep 2012 11:00:38 -0400
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Christoph, It would be appreciated if you could supply a standard patch. It should have documentation updates as well, including modifications to Expat Basics" that show how this new API would help. Thanks, Karl -----Original Message----- From: Expat-discuss [mailto:[email protected]] On Behalf Of Christoph Schnier Sent: September-20-12 6:59 AM To: [email protected] Subject: [Expat-discuss] Get'ter functions for xml handler(s) Dear all, to enhance the proposed way of handling the "stack" tracking discussed in the "Expats Basics" I've made some local changes to the my expat parser to implement some get'ter functions to retrieve the current start/end element handler from a parser object. This enables my programs to handle easily different start/end handlers and maintain a stack of handlers without maintaining all level information about the document hierarchy. I would like to know if It is possible to add such get'ter function to the standard expat library. Here are my examples of the new functions: XML_StartElementHandler XML_GetStartElementHandler(XML_Parser parser) { return (startElementHandler); } XML_EndElementHandler XML_GetEndElementHandler(XML_Parser parser) { return (endElementHandler); } Kind regards Christoph Schnier _______________________________________________ Expat-discuss mailing list [email protected] http://mail.libexpat.org/mailman/listinfo/expat-discuss