Java XML and JSON Binding
Object-to-XML and object-to-JSON mapping using JAXB and EclipseLink MOXy.
Pages
(Move to ...)
Home
Contact Me
▼
August 25, 2011
XML Schema to Java - Generating XmlAdapters
›
In previous posts I have demonstrated how powerful JAXB's XmlAdapter can be when starting from domain objects. In this example I will d...
3 comments:
August 24, 2011
JAXB and Enums
›
Today I answered a question on Stack Overflow (feel free to up vote) about JAXB and generating Java enums from an XML Schema. This is nor...
4 comments:
August 23, 2011
JAXB and Java IO (Files, Streams, Readers, and Writers)
›
JAXB supports many different XML sources and targets. In this post I'll give an overview of how JAXB can be used with those found in th...
9 comments:
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 t...
August 16, 2011
Using an Unmarshaller.Listener to Capture the Location
›
Recently I came across a question on Stack Overflow asking how find where in the document an object was unmarshalled from. In this post I...
1 comment:
August 15, 2011
JSON Binding with EclipseLink MOXy - Twitter Example
›
In a previous post I described how the Jettison library could be used with any JAXB implementation (Metro, MOXy, JaxMe, etc) to produce/c...
6 comments:
July 29, 2011
JAXB (XJC) and Nested Classes
›
Recently I came across a complaint on Twitter about how JAXB (XJC) generates deeply nested class structures from XML schemas. In this post...
3 comments:
June 30, 2011
JAXB and Complex Types with Simple Content
›
A common question that appears on the forums is something like: "How do I map an object to an XML element with attributes and text in J...
2 comments:
June 27, 2011
JAXB and Factory Methods
›
Everyone knows that by default JAXB uses the no-argument constructor when instantiating objects. Readers of this blog are also familiar wit...
1 comment:
June 24, 2011
Using JAXB's @XmlAccessorType to Configure Field or Property Access
›
JAXB offers a lot of flexibility when interacting with your object model. One area is configuring the use of fields or properties to acces...
14 comments:
‹
›
Home
View web version