Skip to main content

Module xpointer

Module xpointer 

Source
Expand description

XPointer implementation (§26, §85 Phase 5).

XML Pointer Language (XPointer) v1.0 support based on the XPointer Framework and element() Scheme W3C Recommendations.

This module provides:

  • Shorthand pointers — bare names treated as element IDs
  • element() schemeelement(id) or element(id/N/M/…) for child-axis traversal
  • xmlXPtrEval C ABI — for interop with libxml2 consumers

The caller is responsible for stripping the # from the URI fragment; this module receives only the fragment content.

Functions§

xmlXPtrEval
C ABI entry point for XPointer evaluation.
xmlXPtrEvalNodeSet
Evaluate an XPointer expression and return a node-set.
xptr_eval
Evaluate an XPointer expression and return the pointed-to node.
xptr_eval_with_context
Evaluate an XPointer using the full XPath/XPointer context.