Enum XPathResult

Assembly: redb.Route.dll

The type an XPath expression produces, at the XPath level.

public enum XPathResult

Remarks

This is a different question from the CLR type the caller wants back. XPath 1.0 has four types
of its own — node-set, string, number, boolean — and an expression produces one of them before
.NET conversion is even considered. XPath("/order/total", XPathResult.Number) says "read
this the way XPath's number() reads it"; XPath<int>("/order/total") says
"give me the result as an ". The two compose, and either can be used alone.


The distinction matters most in a condition, where the default asks
whether the path matched anything at all, while asks what the match says.
Apache Camel draws the same line, as resultQName against resultType.