Files
BeWoPlaner/BeWoPlanerMobil/node_modules/xpath/docs/parsed expressions.md
Lyndon Jetten 88fd24f3a9 MoK:
- Bug beim Übernehmen eines Termins in die Zeiterfassung, wenn man Stunden als Zeiteinheit ausgewählt hatte, behoben.
- Berichte und Mitarbeiterstundenkonto eingebaut
- Node-Module optimiert (sehr viele gelöscht)
2023-05-15 11:54:13 +02:00

782 B

Using Parsed Expressions

The xpath.parse() method allows pre-parsing an XPath expression and creating an XPath executor to evaluate the XPath as many times as needed.

This can provide a performance benefit if you plan to evaluate the same XPath multiple times, because the expression only needs to be parsed once.

This also provides access to additional features such as the use of variables and custom XPath functions, which are not available using the evaluation methods on the xpath object.

xpath.parse(expression)

Parses the specified XPath expression and returns an XPathEvaluator. See the documentation page for API details.

expression should be a string.

Example usage:

var evaluator = xpath.parse('/book/characters');