[Expat-discuss] Get'ter functions for xml handler(s)

Karl Waclawek karl at waclawek.net
Thu Sep 20 17:00:38 CEST 2012


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:expat-discuss-bounces+karl=waclawek.net at libexpat.org] On Behalf Of
Christoph Schnier
Sent: September-20-12 6:59 AM
To: expat-discuss at libexpat.org
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
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss



More information about the Expat-discuss mailing list