PowerShell has dot syntax for accessing some XML nodes:
root.object1.object2
Is it possible to do something like this?
root.object1.object2[@id="pdt1"]
except this syntax doesn't work.
Does this kind of syntax exist or is it mandatory to use SelectNodes() method?
Where-Object:root.object1.object2|? id -eq pdt1.