The XPath version to use. Defaults to '1.0'.
Optionaloptions: Omit<XPathBaseParserOptions, "version">Parser configuration options.
An XPath parser instance appropriate for the version.
// Create XPath 1.0 parser (default)
const parser = createXPathParser();
// Create XPath 1.0 parser explicitly
const parser10 = createXPathParser('1.0');
// Create XPath 2.0 parser
const parser20 = createXPathParser('2.0');
// Create parser with options
const parser = createXPathParser('1.0', { enableNamespaceAxis: true });
Factory function to create an XPath parser for the specified version.