Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of XPath is installed

I'm using powerShell, and I want to use lower-case() in a XPath.Something like that

//Machines/Machine[lower-case(@FQDN)=lower-case('machine2.mydomain.com')]

The documentation indicate that I need XPath 2.0, how can I check the version of XPath installed on my server?

like image 228
Anas Avatar asked Jul 22 '14 18:07

Anas


1 Answers

As of 2012, Microsoft was officially not supporting XPath 2.0 in the .NET Framework (which is what you'll be using from PowerShell, unless you pull in a 3rd-party library) and as recently as last year it was still not happening. Given that they said a decade ago that they weren't going to implement it, and it hasn't happened yet - don't count on it ever happening.

See XPath and XSLT 2.0 for .NET? for alternatives.

like image 58
alroc Avatar answered Oct 24 '22 16:10

alroc