modify item innerXml with powershell
<p>So I've a little with my PowerShell script and XML file.
Currently the XML file is formated like this :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;Settings&gt; 
  &lt;ARP&gt;
    &lt;ConfigVLAN&gt;
      &lt;Vlan&gt;Vlan1&lt;/Vlan&gt;
      &lt;Vlan&gt;Vlan2&lt;/Vlan&gt;
      &lt;Vlan&gt;Vlan3&lt;/Vlan&gt;
      &lt;Vlan&gt;Vlan4$&lt;/Vlan&gt;
    &lt;/ConfigVLAN&gt;
  &lt;/ARP&gt;
&lt;/Settings&gt;
</code></pre>

<p>And my Powershell script like this :</p>

<pre><code>function modifyXmlItem ($selectedItem, $newValue) {

    $node = $xml.Settings.ARP.configVLAN | where {$_ -eq $selectedItem}
    $node = $newValue
    $xml.Save($path)
}
</code></pre>

<p>So I want change value of the Vlan1 by a value from a textbox.
I can get value form the textbox, I can get value selected (Vlan 1), but I failed to change the "Vlan1"...</p>

<p>But this function doesn't work ...
I have tried many solution provided from the web but none working...</p>

<p>Can you help me please...
(Sorry for my bad English..)</p>