So, usually I apply JAXB annotations in the code as follows:
package com.example; @XmlRootElement(name = \"Foo\", namespace = \"example.com\") @XmlType(name = \
Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.
The MOXy implementation of JAXB has an external mapping file that you can use to provide the metadata.
For More Information