| 1 |
/** |
| 2 |
* @file |
| 3 |
* |
| 4 |
* @brief XPointer framework and schemes |
| 5 |
* |
| 6 |
* API to evaluate XPointer expressions. The following schemes are |
| 7 |
* supported: |
| 8 |
* |
| 9 |
* - element() |
| 10 |
* - xmlns() |
| 11 |
* - xpath1() |
| 12 |
* |
| 13 |
* xpointer() is an alias for the xpath1() scheme. The point and |
| 14 |
* range extensions are not supported. |
| 15 |
* |
| 16 |
* @copyright See Copyright for the status of this software. |
| 17 |
* |
| 18 |
* @author Daniel Veillard |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef __XML_XPTR_H__ |
| 22 |
#define __XML_XPTR_H__ |
| 23 |
|
| 24 |
#include <libxml/xmlversion.h> |
| 25 |
|
| 26 |
#ifdef LIBXML_XPTR_ENABLED |
| 27 |
|
| 28 |
#include <libxml/tree.h> |
| 29 |
#include <libxml/xpath.h> |
| 30 |
|
| 31 |
#ifdef __cplusplus |
| 32 |
extern "C" { |
| 33 |
#endif |
| 34 |
|
| 35 |
/* |
| 36 |
* Functions. |
| 37 |
*/ |
| 38 |
XML_DEPRECATED |
| 39 |
XMLPUBFUN xmlXPathContext * |
| 40 |
xmlXPtrNewContext (xmlDoc *doc, |
| 41 |
xmlNode *here, |
| 42 |
xmlNode *origin); |
| 43 |
XMLPUBFUN xmlXPathObject * |
| 44 |
xmlXPtrEval (const xmlChar *str, |
| 45 |
xmlXPathContext *ctx); |
| 46 |
|
| 47 |
#ifdef __cplusplus |
| 48 |
} |
| 49 |
#endif |
| 50 |
|
| 51 |
#endif /* LIBXML_XPTR_ENABLED */ |
| 52 |
#endif /* __XML_XPTR_H__ */ |