You know ,
java.util.Date is the complex object, and parsing from string to
Date is little bit complex. but don’t worry, it can be simple once you know the basic things.
JAXB supports to customize marshaling and de-marshaling of
java.util.Date object, meaning that , you can customize your own format of data in xml and and java object. You have to defined
XmlAdapter which control the customization of your data format.
Continue reading JAXB: Date Format Example in Java
How to unmarshall and marshal java Map (key/value ) where key can be a string and value can be a java object. You can implement inbuilt in java class in jaxb i.e.
XmlAdaptor for this type of mapping in JAXB (Java Architecture for XML Binding).
Continue reading JAXB: XmlAdaptor Example with Java Map
In this post I tried to demonstrate different configuration for XML namespace. How do you marshal and un-marshal in case of XML namespace
Continue reading JAXB: Example with XML Namespace
This example demonstrate nested object meaning that , one container class which hold reference of another class. Let say , container class is Employee which hold reference of Address or list of Address , then how you bind in JAXB 2.0.
Continue reading JAXB: Example of Nested List of XML Element
Well, in this post I tried to explain different type of Annotations used in JAXB API the annotation as: @XmlRootElement, @XmlType, @XmLElementWrapper, @XmlAttribute, @XmlAccessorType @XmlJavaTypeAdapter
Continue reading Annotation in JAXB
This is simple example with minimum annotation to understand JAXB 2.0, or you can say its hello word type of example. If don know what is JAXB 2.0 and you wanted to know, you can read our another post i.e. What is JAXB 2.0 There is no any dependency to run or compile the code. All the libraries are inbuilt in J2SE.
Continue reading Step by step Example of JAXB 2.0
JAXB stands for Java Architecture for XML Binding. By using JAXB and its
annotation you can do two following things, in fact your intent is very clear to do the following things.
- convert Java object to XML
- XML to Java Object.