我正在使用 powerShell,我想使用 lower-case()在 XPath.Something 这样的
//Machines/Machine[lower-case(@FQDN)=lower-case('machine2.mydomain.com')]
文档表明我需要 XPath 2.0,如何检查服务器上安装的 XPath 版本?
最佳答案
截至 2012, Microsoft was officially not supporting XPath 2.0在 .NET Framework 中(这是您将在 PowerShell 中使用的内容,除非您使用第三方库)以及最近的 last year它仍然没有发生。鉴于他们 said a decade ago他们不会实现它,而且它还没有发生——不要指望它会发生。
见 XPath and XSLT 2.0 for .NET?对于替代方案。
关于powershell - 安装了哪个版本的 XPath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24895269/