Change XML root element name
<p>I have XML stored in string variable:</p>

<pre><code>&lt;ItemMasterList&gt;&lt;ItemMaster&gt;&lt;fpartno&gt;xxx&lt;/fpartno&gt;&lt;frev&gt;000&lt;/frev&gt;&lt;fac&gt;Default&lt;/fac&gt;&lt;/ItemMaster&gt;&lt;/ItemMasterList&gt;
</code></pre>

<p>Here I want to change XML tag <code>&lt;ItemMasterList&gt;</code> to <code>&lt;Masterlist&gt;</code>. How can I do this?</p>
