xpointer.h 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #ifndef __XML_XPTR_H__
  21. #define __XML_XPTR_H__
  22. #include <libxml/xmlversion.h>
  23. #ifdef LIBXML_XPTR_ENABLED
  24. #include <libxml/tree.h>
  25. #include <libxml/xpath.h>
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /*
  30. * Functions.
  31. */
  32. XML_DEPRECATED
  33. XMLPUBFUN xmlXPathContext *
  34. xmlXPtrNewContext (xmlDoc *doc,
  35. xmlNode *here,
  36. xmlNode *origin);
  37. XMLPUBFUN xmlXPathObject *
  38. xmlXPtrEval (const xmlChar *str,
  39. xmlXPathContext *ctx);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* LIBXML_XPTR_ENABLED */
  44. #endif /* __XML_XPTR_H__ */