title: How to create c# objects using xml
body: <p>I am new to C#, Silverlight 5 and XAML beginner. I am working on a VS-2012 project and I don't have to use any CycleClip Board Ring to do this task. I have an XML file in my VS project. Suppose the file is given below:</p>
  
  <pre><code>FileName is FileXml.xml   
  
  &lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;parameter&gt;
     &lt;name&gt;mounts&lt;/name&gt;
      &lt;unit&gt;&lt;/unit&gt;
        &lt;component&gt;
           &lt;type&gt;List&lt;/type&gt;
           &lt;attributes&gt;
              &lt;type&gt;Integer&lt;/type&gt;
              &lt;displayed&gt;4&lt;/displayed&gt;
              &lt;add_remove&gt;yes&lt;/add_remove&gt;
              &lt;item&gt;25&lt;/item&gt;
           &lt;/attributes&gt;
           &lt;attributes&gt;
              &lt;ccypair&gt;XAUUSD&lt;/ccypair&gt;
              &lt;item&gt;100&lt;/item&gt;
           &lt;/attributes&gt;
        &lt;/component &gt;
     &lt;/parameter&gt;
  </code></pre>
  
  <p>And I have to parse this XML file and have to create the object in C# .So that I would be able to use "bands_amounts" (name) and all other elements accessing through those objects. How to do this using C# code?</p>