In a previous post I compared JAXB to XStream. In this post I'll run that comparison with the Simple XML Serialization framework.
October 25, 2010
October 21, 2010
XML Schema has the concept of a choice element. The choice element indicates that one of the elements defined within the choice may occur at this point in the XML document. In this example I will demonstrate how easily this can be mapped using JAXB.
October 7, 2010
When converting objects to XML, privately owned data can easily be represented through nested elements. When there are multiple references to an object another mechanism needs to be used. In JAXB this mechanism is @XmlID and @XmlIDREF.
October 6, 2010
The XStream FAQ states the following when being compared to JAXB:
JAXB is a Java binding tool. It generates Java code from a schema and you are able to transform from those classes into XML matching the processed schema and back. Note, that you cannot use your own objects, you have to use what is generated.In this post I will provide an alternative answer to that question.