Skip to main content

eval_batch_text

Function eval_batch_text 

Source
pub fn eval_batch_text(
    docs: &[&[u8]],
    xpath: &CompiledXPath,
) -> Result<Vec<Vec<String>>>
Expand description

Evaluate an XPath expression against a batch of documents, returning text results.

Each document is parsed independently with the compiled XPath evaluated against it. The XPath expression is compiled once and reused across all documents.