xpath.h

Tipo de función xmlXPathAxisFunc

Una función de desplazamiento de ejes. Para recorrer un eje, el motor llama la primera vez con cur == NULL y repite hasta que la función devuelve NULL indicando el final del recorrido del eje.

Sintaxis

/**
 * xmlXPathAxisFunc:
 * @ctxt:  the XPath interpreter context
 * @cur:  the previous node being explored on that axis
 *
 * An axis traversal function. To traverse an axis, the engine calls
 * the first time with cur == NULL and repeat until the function returns
 * NULL indicating the end of the axis traversal.
 *
 * Returns the next node in that axis or NULL if at the end of the axis.
 */

typedef xmlXPathObjectPtr (*xmlXPathAxisFunc) (
			xmlXPathParserContextPtr ctxt,
			xmlXPathObjectPtr cur);

Parámetros

ctxt
El contexto del intérprete de XPath.
cur
El nodo anterior que se explora en ese eje.