title: How to validate REST request?
body: <p>Given this service:</p>
  
  <pre><code>POST /hotel HTTP/1.1
  
  &lt;hotel&gt;
    &lt;a&gt;aaa&lt;/a&gt;
    &lt;b&gt;bbb&lt;/b&gt;
    &lt;c&gt;ccc&lt;/c&gt;
  &lt;/hotel&gt;
  
  HTTP/1.1 201 CREATED
  Location: /hotel/123
  </code></pre>
  
  <p>When we process the request on the server we will validate the <code>hotel</code> XML in the request against a DTD.  </p>
  
  <p>Question is, as a REST best practice should the client refer to the DTD in the request (as one normally does when creating an XML doc based on a DTD)?  Or is this not required?  The DTD will be described in the API docs so the writers of the client service will be aware of the DTD validation details.</p>