Class XPathDsl
DSL extension that wires an XPath query into a route step. Reads
{"xml":"<document>","xpath":"//book[1]/title"} from
exchange.In.Body, evaluates the path against the embedded document
using (W3C XPath 1.0 — same engine
the rest of redb.Route uses for xpath(...) in routes) and writes
the matched value as a string — or the literal null when nothing
matched — to exchange.Out.Body.
From("direct:llm.xpath")
.AsLlmTool("xpath").Description("Query an XML document.").Then()
.XPath(new XPathOptions());
public static class XPathDsl
Inheritance
Methods
XPath(IRouteDefinition, XPathOptions?)
Adds an XPath query step. Uses default options when options is null.
public static IRouteDefinition XPath(this IRouteDefinition self, XPathOptions? options = null)