Powershell - Read XML File


Advertisements

Cmdlet

Get-Content cmdlet is used to read content of a xml file.

In this example, we're reading content of test.xml.

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

Output

You can see following output in PowerShell console.

<title>Welcome to TutorialsPoint</title>
powershell_files_io.htm
Advertisements