title: Deserializing child elements in xml
body: <p>How should I get the <code>&lt;site-standard-profile-request&gt;</code> child element to deserialize correctly so that it does not show up as null?</p>
  
  <p>The deserialization process is perfect; I just need to get the child element <code>&lt;site-standard-profile-request&gt;</code> to serialize as well.</p>
  
  <pre><code> //&lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt; 
      //- &lt;person&gt;
      //  &lt;first-name&gt;Storefront&lt;/first-name&gt; 
      //  &lt;last-name&gt;Doors&lt;/last-name&gt; 
      //  &lt;headline&gt;CEO at StorefrontDoors.NET&lt;/headline&gt; 
      //- &lt;site-standard-profile-request&gt;
      //  &lt;url&gt;http://www.linkedin.com/profile?viewProfile=&amp;key=147482099&amp;authToken=-Igm&amp;authType=name&amp;trk=api*a216630*s224617*&lt;/url&gt; 
      //  &lt;/site-standard-profile-request&gt;
      //  &lt;/person&gt;
      [XmlRoot("person")]
      [Serializable()]
      public class LinkedIn
      {
          [XmlElement("first-name")]
          public string FirstName { get; set; }
          [XmlElement("last-name")]
          public string LastName { get; set; }
          [XmlElement("headline")]
          public string Headline { get; set; }
          public string URL { get; set; }
      }
  
  
   string profile = oauth.APIWebRequest("GET", "https://api.linkedin.com/v1/people/~", null);
          //
  
          LinkedIn lkIn = null;
  
          BufferedStream stream = new BufferedStream(new MemoryStream());
          stream.Write(Encoding.ASCII.GetBytes(profile), 0, profile.Length);
          stream.Seek(0, SeekOrigin.Begin);
          StreamReader sr = new StreamReader(stream);
          XmlSerializer serializer = new XmlSerializer(typeof(LinkedIn));
  
          lkIn = (LinkedIn)serializer.Deserialize(sr);
          stream.Close();
  </code></pre>