title: Writing xml and reading it back c#
body: <p>ok, I am now using the document method for writing my XML instead of the XmlWriter.
  I have written my XML file with.</p>
  
  <pre><code>userNode = xmlDoc.CreateElement("user");
  attribute = xmlDoc.CreateAttribute("age");
  attribute.Value = "39";
  userNode.Attributes.Append(attribute);
  userNode.InnerText = "Jane Doe";
  rootNode.AppendChild(userNode);
  </code></pre>
  
  <p>But the question is again how to read these settings back.</p>
  
  <pre><code>&lt;users&gt;
    &lt;user name="John Doe" age="42" /&gt;
    &lt;user name="Jane Doe" age="39" /&gt;
  &lt;/users&gt;
  </code></pre>
  
  <p>The format of the file I can figure out how to read the <strong>age</strong> variable but can't get my hands on the name property. my XML file is slightly different to above but not by much</p>