title: How to write data in to Xml File Windows Phone?
body: <p>I want to create a XML file dynamically. After creating the file, I want to create a following structure in XML file by coding in <strong>c#</strong> windows phone.</p>
  
  <pre><code>&lt;Contacts&gt; 
     &lt;Contact&gt;
         &lt;Name&gt;ABC&lt;/Name&gt;
         &lt;PhoneNumber&gt;1234&lt;/PhoneNumber&gt;
         &lt;Email&gt;abc@abc.com&lt;/Email&gt;
     &lt;/Contact&gt;
  &lt;/Contacts&gt; 
  </code></pre>
  
  <p>I want to insert these type of data in XML file. I have searched on it and I found this example <a href="https://stackoverflow.com/questions/12783525/add-data-to-existing-xml-file-using-linq">add data to existing xml file using linq</a>. 
  But I am not able to access <strong>XDocument</strong> in my windows phone project. I have also added <strong>System.XML</strong> assembly.  </p>
  
  <p>So, How can I insert data in XML file? Is it possible in windows phone? </p>