XML - Registration of handler functionsΒΆ
Registration of handler functions
The three handler type functions, which allow the retrieval of XML data, unparsed entities and errors, are user-defined functions written in Sculptor by the programmer (using !function). They must be registered as event handler functions. This is done as follows:
xml_set_document_handler(document_handler_function)
xml_set_DTD_handler(DTD_handler_function)
xml_set_error_handler(error_handler_function)
In each case the argument is the func_id of the Sculptor function that is to handle the corresponding information.
Only the document handler function is mandatory.
These functions have no return value.
EXAMPLES
xml_set_document_handler(fDocHandler)
xml_set_error_handler(fErrorHandler)
RELATED TOPICS |