I am trying to use powershell and XPath to select the name attribute shown in the below xml example.
$xml_peoples= $file.SelectNodes(\"//people\")
How about one line?
Select-XML -path "pathtoxml" -xpath "//person/@name"