title: JDom - can an object be parsed into xml?
body: <p>Im using JDom for creating and retrieving XML messages. I would like to encode an object into xml, say I have a User object class this</p>
  
  <pre><code>class User
  {
      int id;
      String name;
  }
  
  User user;
  </code></pre>
  
  <p>Is there a method that will automatically parse an object like this into an XML document or do I have to manually set the elements of the XML document?</p>