Powershell - 讀取 XML 檔案

Cmdlet

Get-Content cmdlet 用於讀取 xml 檔案的內容。

在這個例子中,我們來讀取 test.xml 的內容。

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

輸出

你可以在 PowerShell 控制檯中看到以下輸出。

<title>Welcome to Tastones</title>