Class XPath2Dsl

Assembly: redb.Route.XPath2.dll

Factory methods for XPath 2.0 expressions, written to be imported:
using static redb.Route.XPath2.XPath2Dsl;

public static class XPath2Dsl

Inheritance

Object→XPath2Dsl

Methods

XPath2(string, IXmlNamespaceResolver)

Creates an XPath 2.0 expression with an explicit namespace resolver.

public static XPath2Expression XPath2(string path, IXmlNamespaceResolver namespaces)

XPath2(string, params (string Prefix, string Uri)[])

Creates an XPath 2.0 expression with namespace prefixes bound.

public static XPath2Expression XPath2(string path, params (string Prefix, string Uri)[] namespaces)

xpath2(string)

Creates an XPath 2.0 expression over the message body.

public static XPath2Expression xpath2(string path)

XPath2(string)

Creates an XPath 2.0 expression over the message body.

public static XPath2Expression XPath2(string path)

xpath2<T>(string)

Creates an XPath 2.0 expression whose result is converted to T.

public static TypedXPath2Expression<T> xpath2<T>(string path)

XPath2<T>(string)

Creates an XPath 2.0 expression whose result is converted to T.

public static TypedXPath2Expression<T> XPath2<T>(string path)

Remarks

The XPath 1.0 helpers live on RouteBuilder as protected members, which a package outside
the core assembly cannot extend. A static import gives the same shape at the call site —
.Filter(XPath2("some $o in /orders/order satisfies $o/total > 100")) — without the core
having to know this package exists.