Skip to content

Example demonstrating how EclipseLink JAXB (MOXy) can map one object model to two XML schemas.

Notifications You must be signed in to change notification settings

bdoughan/blog20110908

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Mapping Objects to Multiple XML Schemas - Weather Example

This is the complete source code for the following blog post:

Summary

In this example EclipseLink JAXB (MOXy)'s @XmlPath and external binding file extensions are used to map a single object model to two different XML schemas. To make the example more "real", the XML data will come from two different services that provide weather information: Google and Yahoo.

Compile the Example

You can compile the example code using the following command. Maven will automatically fetch the required dependencies.

 mvn compile

Run the Example

You can run the example using the following commands.

mvn exec:java -Dexec.mainClass="blog.weather.GoogleDemo"
mvn exec:java -Dexec.mainClass="blog.weather.YahooDemo"

About

Example demonstrating how EclipseLink JAXB (MOXy) can map one object model to two XML schemas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages