title: Multiple XML mappings for the same Java object using JAXB?
body: <p>Note: Editing this to rephrase it around JAXB in hopes of getting new answers. I'm using CXF, but it's using JAXB for the mappings.</p>
  
  <p>I've got a POJO model. Right now I have it mapped via annotations and using JAXB to spew/read XML. However that's only one XML format and I need to map that POJO model to one of various XML formats depending on the 3rd party system I'm integrating with (e.g. various 3rd parties all have the concept of a "person", but map it differently). I've read through the entire JAXB tutorial, but everything is centered around annotations. Is there some external way to map the classes so I can read/write multiple mappings where I pick the mapping to use at any given point (i.e. I know I'm spewing a "person" to Foo Inc., so use the foo mapping)?</p>
  
  <p>Edit: I just found something called JAXBIntroductions that might do the job.
  <a href="http://community.jboss.org/wiki/JAXBIntroductions" rel="nofollow noreferrer">http://community.jboss.org/wiki/JAXBIntroductions</a></p>