title: How can I save to XML?
body: <p>I'm currently making a new WP7 application that should enable users to fill in two textboxes, click a button, and make the content become a part of a .XML file.</p>
  
  <p>At this point, I'm using the following code:</p>
  
  <pre><code>string ItemName = ItemNameBox.Text;
  string ItemAmount= ItemAmountBox.Text;
  
  string xmlString = "&lt;Items&gt;&lt;Name&gt;"+ItemName+"&lt;/Name&gt;&lt;/Item&gt;";
  XDocument document = XDocument.Parse(xmlString);
  document.Root.Add(new XElement("Amount", ItemAmount));
  string newxmlString = document.ToString();
  
  MessageBox.Show(newxmlString);
  </code></pre>
  
  <p>Now, when I click the button (as this is within an onclick button event), the MessageBox shows me that the output is correct XML-wise.</p>
  
  <p>However, how do I get this into an existing XML schema, which should be able to contain quite a few rows (to-do/shopping list, for example)?</p>