title: Receive xml parameter in Restful API C#
body: <p>i'm using Restful API C# and I tried to read xml parameter from client, but it turn out always null, heres my code:</p>
  
  <pre><code>[HttpPost("GPS")]
  public IActionResult GPS( Document body)
  {
      string strReturn="";
      return Ok(System.Reflection.MethodBase.GetCurrentMethod().Name);
  }
  
  public class Document
  {
      public string XML { get; set; }
  }
  </code></pre>
  
  <p>heres my xml:</p>
  
  <pre><code>&lt;ROOT xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;USERID&gt;&lt;/USERID&gt;
      &lt;testing1&gt;1&lt;/testing1&gt;
  &lt;/ROOT&gt;
  </code></pre>
  
  <p>anyone can help, thanks</p>