Skip to main content

xptr_eval_with_context

Function xptr_eval_with_context 

Source
pub unsafe fn xptr_eval_with_context(
    expr: &str,
    doc: *mut _xmlDoc,
    _context: Option<&mut XPathContext>,
) -> Option<*mut _xmlNode>
Expand description

Evaluate an XPointer using the full XPath/XPointer context.

This is a convenience wrapper that creates a temporary XPath context and delegates to xptr_eval.

ยงSafety

doc must be a valid, non-null pointer to a fully parsed _xmlDoc.