I need to copy node with name \"ProjectOptions\" from default.xml to original.xml without modifying anything else:
Original.xml
Found a simple way:
$xmlPO = $xml.SelectNodes("//KEY[@ObjectName='ProjectOptions']") $xmldPO = $xmld.SelectNodes("//KEY[@ObjectName='ProjectOptions']") $xmlPO.set_InnerXML($xmldPO.innerXML) $xml.Save($dpath)