xpath.h

Tipo de función xmlXPathConvertFunc

Una función de conversión se asocia a un tipo y se utiliza para convertir el nuevo tipo en valores primitivos. Devuelve -1 en caso de error, 0 en caso contrario.

Sintaxis

/**
 * xmlXPathConvertFunc:
 * @obj:  an XPath object
 * @type:  the number of the target type
 *
 * A conversion function is associated to a type and used to cast
 * the new type to primitive values.
 *
 * Returns -1 in case of error, 0 otherwise
 */
typedef int (*xmlXPathConvertFunc) (xmlXPathObjectPtr obj, int type);

Parámetros

obj
Un objeto XPath.
type
El número del tipo de objetivo.