title: Adding namescpace prefix to XML
body: <p>I have a number of POCO classes that are generating the required XML structure for serializtion to be passed as return in a SOAP WS. In selected elements I need to add namespace prefix/ alais to the elements. Is this possible? If yes how please?</p>
  <p>POCO Classes</p>
  <pre><code>public partial class ValueTable
  {
  
      private List&lt;ValueTableColumn&gt; headerField;
  
      private row[] rowField;
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlArrayItemAttribute(&quot;column&quot;, IsNullable = false)]
      public List&lt;ValueTableColumn&gt; header
      {
          get
          {
              return this.headerField;
          }
          set
          {
              this.headerField = value;
          }
      }
  
  
      /// &lt;remarks/&gt;
      [XmlElement]
      public row[] row
      {
          get
          {
              return this.rowField;
          }
          set
          {
              this.rowField = value;
          }
      }
  
  }
  [System.SerializableAttribute()]
  [System.ComponentModel.DesignerCategoryAttribute(&quot;code&quot;)]
  public partial class row
  {
  
      private rowField[] fieldField;
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlElementAttribute(&quot;field&quot;)]
      public rowField[] field
      {
          get
          {
              return this.fieldField;
          }
          set
          {
              this.fieldField = value;
          }
      }
  }
  [System.SerializableAttribute()]
  [System.ComponentModel.DesignerCategoryAttribute(&quot;code&quot;)]
  public partial class rowField
  {
  
      private string textField;
  
      /// &lt;remarks/&gt;
      public string text
      {
          get
          {
              return this.textField;
          }
          set
          {
              this.textField = value;
          }
      }
  }
  </code></pre>
  <p>Sample XML with required namespace prefixes/alias</p>
  <pre><code>    &lt;v21:row&gt;
              &lt;v21:field&gt;
                  &lt;v21:text&gt;ID-1005896&lt;/v21:text&gt;
              &lt;/v21:field&gt;
              &lt;v21:field&gt;
                  &lt;v21:text&gt;Smith&lt;/v21:text&gt;
              &lt;/v21:field&gt;
  &lt;v21:field&gt;
                  &lt;v21:text&gt;64AF6547DDSEE&lt;/v21:text&gt;
              &lt;/v21:field&gt;
          &lt;/v21:row&gt;
  </code></pre>
  <p>Currently it is being returned with out the prefixes/alias.</p>
  <p>I appreciate any help :)</p>