title: JAXB validation using annotations
body: <p>If I have a simple class such as:-</p>
  
  <pre><code>@XmlRootElement
  public class MyClass
  {
     @XmlAttribute(required=true)
     private String myattribute
  }
  </code></pre>
  
  <p>Is it possible to validate a corresponding xml document WITHOUT an xml schema i.e. using only the annotations?</p>