ICI Modules: xml: SetElementHandler


Modules by name : by type

Synopsis

xml.SetElementHandler(XML_Parser, func, func)

Description

Define the callback functions to be invoked when the parser encounters the start and end of a XML element. The first function argument is the "start of element" callback, the second function argument the "end of element" callback.

The start of element callback function is called with three arguments, the first being the user-defined data associated with the parser object, the second a string with the element tag and the third a struct containing the element's attributes as strings, attribute names being the keys which map to the attribute values.

The end of element callback is called with two arguments, the user-defined data associated with the parser object and the element tag.