How to parse XML in Powershell with Select-Xml and Xpath?
问题 obvious output for this example would be the date and time. In the context of iterating over an xml document, how is this document correctly cast or converted to xml in Powershell dotnet core on Linux ? PS /home/nicholas/flwor> PS /home/nicholas/flwor> Select-Xml -Xml (Get-Date | ConvertTo-Xml) -XPath "/Objects/Object" Node Path Pattern ---- ---- ------- Object InputStream /Objects/Object PS /home/nicholas/flwor> PS /home/nicholas/flwor> (Get-Date | ConvertTo-Xml).OuterXml <?xml version="1.0"