I have written previous posts on EclipseLink JAXB (MOXy)'s @XmlPath and external binding file extensions. In this post I will demonstrate how powerful these extensions are by mapping 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.
Showing posts with label XmlPath. Show all posts
Showing posts with label XmlPath. Show all posts
September 8, 2011
Mapping Objects to Multiple XML Schemas - Weather Example
Labels:
EclipseLink,
Extension,
JAXB,
Mapping File,
MOXy,
XmlPath
August 19, 2011
Binding to JSON & XML - Geocode Example
In a previous post I introduced the JSON binding that was added in the MOXy component in EclipseLink 2.4. In that post I explained how the same metadata that is used for XML binding can be directly applied to JSON binding. In this post I will demonstrate how powerful this is, by mapping one object model to both XML and JSON using the same set of metadata. Google Maps Geocoding API V2 will be used to provide the XML and JSON inputs for this example.
You can try this out now using a download available from:
Labels:
EclipseLink,
EclipseLink 2.4,
Extension,
Geocode,
JAXB,
JSON,
MOXy,
XmlPath
March 22, 2011
Map to Element based on an Attribute Value with EclipseLink JAXB (MOXy)
I am happy to announce that we are expanding MOXy's XPath based mapping in EclipseLink 2.3. You are now able to map to an element based on the value of an attribute. This is done by leveraging XPath predicates via MOXy's @XmlPath annotation.
You can try this out today by downloading one EclipseLink 2.3.0 nightly downloads starting on March 22, 2011 from:
Labels:
EclipseLink,
EclipseLink 2.3,
Extension,
MOXy,
Predicate,
XmlPath
September 13, 2010
XPath Based Mapping - Geocode Example
In a previous post I introduced MOXy's XPath based mapping JAXB extension. In this post I'll use Google Maps Geocoding API V2 to demonstrate how powerful this extension is.
July 14, 2010
XPath Based Mapping
In this post we'll explore the XPath based mapping aspect of EclipseLink JAXB (MOXy). XPath based mapping is what allows an existing object model to be mapped to an existing XML schema. MOXy is the only XML binding solution I'm aware of with this ability and therefore the only true object-to-XML mapper (OXM).
Subscribe to:
Posts (Atom)