title: Validate JAXBElement in JPA/JAX-RS Web Service
body: <p>I have a JAX-RS webservice (Jersey) that is a CRUD interface for JPA (EclipseLink) entities.  My entities were autogenerated from the database tables and I have annotated them with JAXB annotations so that they can be marshalled/unmarshalled to/from XML.  My resource methods take JAXBElement objects as a parameter where required.</p>
  
  <p>I don't have an XSD, however, I'm willing to write one to validate the XML received in the requests.  But, I don't know how to initiate the validation.  Jersey is automatically handling the marshalling/unmarshalling and any references I've found about validation is done at that level.</p>
  
  <p>Does someone know of an example/tutorial that shows how to do this?</p>
  
  <p>Thanks!</p>