Read and Write/Update the XML file in Powershell

In many cases, we found ourselves in a situation where we need to Read and update XML files.

It’s quite straight forward in Power Shell.

Sample XML File: 

Powershell script to read and update XML file

https://gist.github.com/jeevan90/c570d22a9c07b31fb137d89bd8123d4e

Powershell script to read and write XML file

https://gist.github.com/jeevan90/107b4320198e99ffdaf34751d7f421d4