Posted by yawnmoth on 02/15/06 23:27
Some of the parametesr to the xml_set_*_handler are supposed to be the
names of "handler" functions that accept certain parameters. For
example, xml_set_character_data_handler's handler function is supposed
to take two parameters - parser and data.
My question is... what purpose does passing the parser object to the
handler function serve? None of the handler functions I've seen make
any use of it and not all callback functions (as I guess a handler
function is) require the object that it is supposed to be working on be
passed to it (array_map, for example)...
Navigation:
[Reply to this message]
|