title: Java to XSD or XSD to Java
body: <p>I know that, using JAXB, you can <a href="http://www.javaworld.com/javaworld/jw-06-2006/jw-0626-jaxb.html" rel="nofollow noreferrer">generate Java files from an XSD</a> and that you can also <a href="https://stackoverflow.com/q/1325048/7648">generate the XSD from annotated POJOs</a>.  What are the advantages and disadvantages of each?  Is one overall better than the other?</p>
  
  <p>We basically want to serialize events to a log in XML format.</p>