I’m working with an existing C# API that accepts string XPath expressions (ActiveMQ message body constraints, but that’s not an important detail).
I’m a newcomer to Linq. Is it possible to build up a Linq predicate and export that as an XPath expression?
I’m interested because of Linq’s strong typing and syntax checking compared with a simple XPath string.
Yes you can use Linq to Xml provider, you can found an example here:
http://odetocode.com/blogs/scott/archive/2009/06/05/from-linq-to-xpath-and-back-again.aspx