|
Re: Transform xml from one XSD version to another [message #929499 is a reply to message #928789] |
Mon, 01 October 2012 14:06 |
|
Hi Steven,
Yes MOXy can be used to support mapping an object model to multiple versions of an XML schema by leveraging MOXy's external metadata.
Typical Approach
1. Map the object model to one version of the XML schema using annotations. Create a JAXBContext on this model.
2. Leverage MOXy's mapping document to override the mappings that have changed for the new version. Create another JAXBContext that leverages the annotations and mapping document.
3. You can apply multiple mapping documents so you could have one that represents the delta for each version.
If the document format changed a lot, then you can specify that the mapping document completely replaces any metadata supplied via annotations.
- http://blog.bdoughan.com/2011/09/mapping-objects-to-multiple-xml-schemas.html
-Blaise
|
|
|
Powered by
FUDForum. Page generated in 0.02364 seconds