Why Do We Use Jaxb
Jaxb Simplifies Access to an Xml Document from a Java Program: . Jaxb Allows You to Access and Process Xml Data Without Having to Know Xml or Xml Processing...
JAXB simplifies access to an XML document from a Java program: . JAXB allows you to access and process XML data without having to know XML or XML processing. Unlike SAX-based processing, there’s no need to create a SAX parser or write callback methods.
Why is JAXB API used?
JAXB stands for Java Architecture for XML Binding. It provides mechanism to marshal (write) java objects into XML and unmarshal (read) XML into object. Simply, you can say it is used to convert java object into xml and vice-versa.
What is the use of @XmlElement?
A JavaBean property, when annotated with @XmlElement annotation is mapped to a local element in the XML Schema complex type to which the containing class is mapped.