{ } qjs-modules

xpath

Source: lib/xpath.js (pure JS) — default export: XPath

XPath-style addressing over a DOM-like tree, plus the standard XPathEvaluator/XPathResult surface.

Exports

ExportArgsKindDescription
XPath—classAn XPath expression / path object. (default export)
ImmutableXPath, MutableXPath, XPathExpression—constAliases of XPath.
XPathEvaluator—classEvaluates expressions against a context node.
XPathResult—classResult wrapper (node set / value).
XPathException—classError type for evaluation failures.
DereferenceError—classThrown when a path can't be resolved (extends Error).
parseXPath(str)1functionParses an XPath string.
buildXPath(ptr, root)2functionBuilds an XPath addressing ptr within root.
getSiblings(ptr, root)2functionReturns sibling nodes of the addressed node.