Powershell-读取XML文件

输出

我们可以在PowerShell控制台中看到以下输出。

<title>Welcome to onitroad</title>

Cmdlet

Get-Content cmdlet用于读取xml文件的内容。

在本例中,我们正在读取test.xml.

Get-Content D:\temp\test\test.xml
日期:2019-08-20 13:51:03 来源:oir作者:oir