title: The XML element 'tr' from namespace '' is already present in the current scope
body: <p>I'm trying to build a CDA document by serializing my object to XML, here's the XML part that causing me some troubles : </p>
  
  <pre><code>&lt;component&gt;
      &lt;section&gt;
          &lt;templateId root='2.16.840.1.113883.10.20.1.11'/&gt;
          &lt;templateId root='1.3.6.1.4.1.19376.1.5.3.1.3.6'/&gt;
          &lt;!--&lt;id root='' extension=''/&gt;--&gt;
          &lt;code code="11450-4" displayName="PROBLEM LIST" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/&gt;
          &lt;title&gt;Active Problem - Problem List&lt;/title&gt;
          &lt;text&gt;
              &lt;table&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th&gt;Problem&lt;/th&gt;
                          &lt;th&gt;Code&lt;/th&gt;
                          &lt;th&gt;Code System&lt;/th&gt;
                          &lt;th&gt;Start Date&lt;/th&gt;
                          &lt;th&gt;Status&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Asthma&lt;/td&gt;
                          &lt;td&gt;195967001&lt;/td&gt;
                          &lt;td&gt;SNOMED CT&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;Active&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Costal chondritis&lt;/td&gt;
                          &lt;td&gt;64109004&lt;/td&gt;
                          &lt;td&gt;SNOMED CT&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;Active&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;No impairment&lt;/td&gt;
                          &lt;td&gt;66557003&lt;/td&gt;
                          &lt;td&gt;SNOMED CT&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;Active&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/text&gt;
      &lt;/section&gt;
  &lt;/component&gt;
  </code></pre>
  
  <p>And here are my C# classes for serializing it : </p>
  
  <pre><code>public class Section
  {
      [XmlElement("templateId")]
      public List&lt;IdElement&gt; TemplateIds { get; set; }
      [XmlElement("code")]
      public CodeElement Code { get; set; }
      [XmlElement("title")]
      public string Title { get; set; }
      [XmlElement("text")]
      public Text Text { get; set; }
  }
  public class Text
  {
      [XmlElement("table")]
      public Table.Table Table { get; set; }
  
      [XmlArray("list")]
      [XmlArrayItem("item")]
      public List&lt;string&gt; List { get; set; }
  
      [XmlElement("paragraph")]
      public List&lt;string&gt; Paragraphs { get; set; }
  }
  public class Table
  {
      [XmlElement("thead")]
      public TRow Header { get; set; }
      [XmlElement("tbody")]
      public TRow Body { get; set; }
  }
  public class TRow
  {
      [XmlArray(ElementName = "tr", Namespace = "")]
      [XmlArrayItem("td")]
      public List&lt;string&gt; RowData { get; set; }
  
      [XmlArray(ElementName = "tr", Namespace = "")]
      [XmlArrayItem("th")]
      public List&lt;string&gt; HeaderData { get; set; }
  }
  </code></pre>
  
  <p>But when I try to serialize my CDA object now, it says that the type <strong>tr</strong> is already present in the Namespace, so I guess that this kind of XML table already exists, but I can't find a way to do it properly. 
  Is there any solution to get around this problem ? </p>
  
  <p>Here's the error log (without the stack trace) : </p>
  
  <blockquote>
    <p>System.InvalidOperationException: There was an error reflecting type
    'Project.Cda.Core.ClinicalDocument'. --->
    System.InvalidOperationException: There was an error reflecting
    property 'Component'. ---> System.InvalidOperationException: There was
    an error reflecting type 'Project.Cda.Core.Components.BaseComponent'.
    ---> System.InvalidOperationException: There was an error reflecting property 'Components'. ---> System.InvalidOperationException: There
    was an error reflecting type 'Project.Cda.Core.Components.Component'.
    ---> System.InvalidOperationException: There was an error reflecting property 'Section'. ---> System.InvalidOperationException: There was
    an error reflecting type 'Project.Cda.Core.Components.Section'. --->
    System.InvalidOperationException: There was an error reflecting
    property 'Text'. ---> System.InvalidOperationException: There was an
    error reflecting type 'Project.Cda.Core.Components.Text'. --->
    System.InvalidOperationException: There was an error reflecting
    property 'Table'. ---> System.InvalidOperationException: There was an
    error reflecting type 'Project.Cda.Core.Components.Table.Table'. --->
    System.InvalidOperationException: There was an error reflecting
    property 'Header'. ---> System.InvalidOperationException: There was an
    error reflecting type 'Project.Cda.Core.Components.Table.TRow'. --->
    System.InvalidOperationException: There was an error reflecting
    property 'HeaderData'. ---> System.InvalidOperationException: The XML
    element 'tr' from namespace '' is already present in the current
    scope. Use XML attributes to specify another XML name or namespace for
    the element.</p>
  </blockquote>