I'm trying to change the value in xml.
XML file:
<?xml version="1.0" encoding="utf-8"?>
<settings>
<setting name="Attach" defaultValue="False" value="" />
<setting name="Connections" defaultValue="" value="CHANGE_THE_VALUE" />
<setting name="Destroy" defaultValue="True" value="" />
</settings>
I need to change the value in "Connections"
Powershell:
$file = "C:\New folder\UserSettings.xml"
$xmldata = [xml] (Get-Content $file)
$xmldata.settings.ChildNodes
$xmldata.Save((Resolve-Path $file).Path)
How should I modify the 3rd string in the code above?