Xiqual 0.9.1

In file xitools/xmlhooks.c:

int* xml_addentityhook

(xmldoc* doc, char* entity, int* func)

Add a hook function to handle an escaped character entity.

Documentation

Add a hook function to handle an escaped character entity. When an entity definition isn't one of the five supported types (>, <, &, ', "), the appropriate function you install will be called to handle the translation. You will need to add one functions for each entity encoding you want to support.

The function must return a pointer to the string to be output instead of the encoded entity. This should preferably be a static buffer. Your function will have a pointer to the first character after the ampersand as its first and only argument.

Parameters:
entity - Name of entity without the beginning ampersand and ending colon.
func - Your hook function.
Returns:
0 if no error occurred allocating a node to hold your function
Author:
Ronny Bangsund
See Also:
xml_addgenentityhook()

Alphabetic index



This page was generated with the help of DOC++.