libxml2
Loading...
Searching...
No Matches
xpointer.h File Reference

XPointer framework and schemes. More...

Functions

xmlXPathContextxmlXPtrNewContext (xmlDoc *doc, xmlNode *here, xmlNode *origin)
 Create a new XPointer context.
xmlXPathObjectxmlXPtrEval (const xmlChar *str, xmlXPathContext *ctx)
 Evaluate an XPointer expression.

Detailed Description

XPointer framework and schemes.

API to evaluate XPointer expressions. The following schemes are supported:

  • element()
  • xmlns()
  • xpath1()

xpointer() is an alias for the xpath1() scheme. The point and range extensions are not supported.

Author
Daniel Veillard

Function Documentation

◆ xmlXPtrEval()

xmlXPathObject * xmlXPtrEval ( const xmlChar * str,
xmlXPathContext * ctx )

Evaluate an XPointer expression.

This function can only return nodesets. The caller has to free the object.

Parameters
stran XPointer expression
ctxan XPath context
Returns
the xmlXPathObject resulting from the evaluation or NULL in case of error.

◆ xmlXPtrNewContext()

xmlXPathContext * xmlXPtrNewContext ( xmlDoc * doc,
xmlNode * here,
xmlNode * origin )

Create a new XPointer context.

Deprecated
Same as xmlXPathNewContext.
Parameters
docthe XML document
hereunused
originunused
Returns
the xmlXPathContext just allocated.