title: XML Serialization error: 2 types both use the XML type name, 'Relationship', from namespace ''
body: <p>I am having a problem serializing via XML because 2 clases use a class (although different classes!) called Relationship. I have tried decorating 1 of the classes with another name using the XML attribute but it still gives me the following error:</p>
  
  <blockquote>
    <p>{"Types 'SiteServer.Relationship' and 'LocalServer.Relationship' both use the XML type name, 'Relationship', from namespace ''. Use XML attributes to specify a unique XML name and/or namespace for the type."}</p>
  </blockquote>
  
  <p>Here are my 2 classes, anyone know why ?? AM i using the wrong attribute? It seems to be ignoring it :-)</p>
  
  <pre><code>public class SiteServer
  {
      [XmlRoot("SiteServerRelationShip")]
      public class Relationship
      {
          public string type { get; set; }
      }
  
      public string Name { get; set; }
  
      public Relationship Relate = new Relationship();
  }
  
  public class LocalServer
  {
      public class Relationship
      {
          public string type { get; set; }
      }
  
      public string Name { get; set; }
  
      public Relationship Relate = new Relationship();
  }
  </code></pre>