title: How to map an object to an existing XML file in C# .NET?
body: <p>I have this existing XML file serving as a template with NO data, just simple nodes... here's a sample:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;catalog&gt;
    &lt;cd&gt;
      &lt;title /&gt;
      &lt;artist /&gt;
      &lt;country /&gt;
      &lt;company /&gt;
      &lt;price /&gt;
      &lt;year /&gt;
    &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>Now I have created a similar class for it.</p>
  
  <pre><code>public class Cd
      {
          public string Title { get; set; }
          public string Artist { get; set; }
          public string Country { get; set; }
          public string Company { get; set; }
          public string Price { get; set; }
          public string Year { get; set; }
      }
  </code></pre>
  
  <p>The purpose is this:</p>
  
  <ol>
  <li>Put values on the properties of the <code>var cd = new Cd();</code> object</li>
  <li>Get the existing XML file (template) then pass the values in it (like mapping the object to the existing XML)</li>
  <li>Transform the XML template(with values) into XSLT to become HTML</li>
  </ol>
  
  <p>I think that's all.</p>
  
  <p>How to properly do this? 
  Thanks a lot!</p>