title: Reading and writing into the XML file
body: <p>I need to work on XML files using Delphi. </p>
  
  <p>I want to present the xml data in a DBGrid to the user and save the changes done by user in the XML file.</p>
  
  <p>For example in the below xml (which was presented to the user), if user <code>changed City of ABC under client</code> and <code>added a new customer with NickName as "AAA"</code> those changes should be reflected in the XML file. </p>
  
  <pre><code>&lt;Data LinkID=”0”&gt;
    &lt;Client&gt;
        &lt;Item Name=”ABC” Mobile=”1234” City=”IN” /&gt;
        &lt;Item Name=”PQR” Mobile=”5678” City=”IN” /&gt;
    &lt;/Client&gt;
    &lt;Customer&gt;
      &lt;Item NickName=”XYZ” Phone=”1254” City=”IN” /&gt;
      &lt;Item NickName=”MNO” Phone =”41255” City=”IN” /&gt;
    &lt;/Customer&gt;
  &lt;/Data&gt;
  </code></pre>
  
  <p>I am working with XMLDocument and ClientDataSet to achieve this but without success. </p>
  
  <p>Can anyone help me in achieving this?</p>