Welcome › Forums › General PowerShell Q&A › Working with XML files
This topic contains 2 replies, has 3 voices, and was last updated by
I'm having a hard time understanding how to read XML files, and how to edit it. I'm not sure where to go from here.
$xmlfile = "path to the xml file"
[xml] $readxml = Get-Content $xmlfile
How would I access the elements in the xml file?
Pipe it to Get-Member and start to look around. It might be something like $readxml.something or $readxml.something.else
The topic ‘Working with XML files’ is closed to new replies.