title: How can I serialize a class with an attribute
body: <p>I have a class that has</p>
  
  <pre><code>[XmlRoot]
  &lt;snip&gt;
  
  [XmlAttribute(AttributeName="x:uid")]
  public string uid;
  
  &lt;snip&gt;
  </code></pre>
  
  <p>It is OK At compile time.. however at runtime,
  exception occurs at line</p>
  
  <pre><code>XmlSerializer serializer = new XmlSerializer(typeof(myClass));
  </code></pre>
  
  <p>because of the invalid character in "x:uid"..
  The element in my class needs to have an "x:uid" attribute for localization purposes..
  How can I do that??</p>
  
  <p>Thanks!</p>