title: Creating a restful method that takes a posted xml and creates an entity
body: <p>How can I take an xml that looks like:</p>
  
  <pre><code>&lt;request&gt;
    &lt;User&gt;
      &lt;name&gt;name value&lt;/name&gt;
      &lt;age&gt;13&lt;/age&gt;
    &lt;/User&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>And then I can deserialize this into a User object that has matching properties.</p>
  
  <pre><code>public class User {
    private String name;
    private Integer age;
  
    // getter and setters
  }
  </code></pre>
  
  <p>Is there anything simple I can do or do I have to parse the xml manually for this?</p>
  
  <p>I'm using spring mvc, and this is in a method where the xml will be posted.</p>