JAXB Tutorial in Java

In this tutorial we will learn what is the significance of  JAXB in Java.

JAXB  stands for Java Architecture for XML Binding, which is using to convert java object to/from XML

Marshalling: JAXB provides support to convert java object to XML.

Unmarshalling: JAXB provides support to convert XML to a JAVA Object.

Let’s run a small program using JAXB API.

@XmlRootElement defines the root element of an xml document.

@XmlAttribute defines the attribute of the root element.

@XmlElement defines the sub element of the root element.







Posted in JAXB and tagged .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.