Skip to content

Function: pathXPath() ​

ts
function pathXPath(steps): XPathFilter;

Defined in: netconf/src/content/path.ts:249

An XPath filter selecting what a resolved path selects, written as an instance-identifier (RFC 7950 §9.13): every node and key is prefixed with its module's name, which namespaces binds to the module's namespace.

/ietf-interfaces:interfaces/interface[name="eth0"] → /ietf-interfaces:interfaces/ietf-interfaces:interface[ietf-interfaces:name='eth0']

Servers without :xpath accept instance-identifiers where XPath is asked for (RFC 5717 partial-lock selects, for example).

Parameters ​

steps ​

readonly ResolvedStep[]

Returns ​

XPathFilter

Throws ​

PathError if a key or value holds both kinds of quote, which XPath 1.0 can't express.

Released under the MIT Licence.