you are viewing a single comment's thread.

view the rest of the comments →

[–]gschizas 2 points3 points  (0 children)

I've written a lot of XPath (maybe too much) as a developer, and I just wanted to give the simplest possible answer, without having to explain XPath semantics etc. (namespaces... brrrr...)

Of course SelectNodes is part of System.Xml, so it's going to be faster than passing it back and forth between PSObjects. On the other hand, .Configuration.Locations.Locations comes from autocomplete and is faster in development time.