Despite the examples I've seen online, it doesn't seem to be possible to do an XPath search on an attribute value in PowerShell.
[xml]$xml = '<a><b><c foo="bar"></c></b></a>'
$xml | select-xml -xpath //c[@foo] # This returns a node
$xml | select-xml -xpath //c[@foo='bar'] # This does not
I've never been so stumped by something so simple. :-) How can I get this to work?