Powershell - 读取 XML 文件

Cmdlet

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

在这个例子中,我们来读取 test.xml 的内容。

Get-Content D:\temp\test\test.xml 

输出

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

<title>Welcome to Tastones</title>