title: Ask about c# Deserialize
body: <p>I got a XML :</p>
  
  <pre><code>&lt;g1:Person xmlns:g1="http://api.google.com/staticInfo/"&gt;
    &lt;g1:Id&gt; 005008&lt;/g1:Id&gt;
      &lt;g1:age&gt;23&gt;&lt;/g1:age&gt;
      &lt;/g1:Person&gt;
  </code></pre>
  
  <p>How to deserialize it to Person Object.      </p>
  
  <p>I just find a way .</p>
  
  <pre><code>  XmlDocument xdc = new XmlDocument();
                  xdc.Load(xmlpath);
  
                  xdc.LoadXml(xdc.InnerXml.Replace("g1:",""));
  
                  xdc.Save(xmlpath);
  </code></pre>
  
  <p>Any other ways to make it easy. or a advanced method  with it.</p>
  
  <pre><code>        xs = new XmlSerializer(typeof(Person));
          XmlDocument xdc = new XmlDocument();
          xdc.Load(xmlpath);
  
          xdc.LoadXml(xdc.InnerXml.Replace("g1:",""));
  
          xdc.Save(xmlpath);
  
  
        Stream  stm = new FileStream(xmlpath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
  
     Person p= xs.Deserialize(stm) as Person;
  </code></pre>