1. Why will we need to convert java to XML ? storage ? No, we could directly save data into relational database.
XML is easily portable and can be used interoperability between systems. sometimes it can be used as common protocol to 2 different system communicate.
I know it could convert data between java and XML. But in real world, what is usage for this API ?
Well say your application receives inbound XML from various systems and you need to do some calculations and store certain values to DB. you should probably use JAXB to convert XML to java objects and retrieve the objects to perform operations and store it in DB.
Joined: Jul 05, 2005
Examples use cases:
Export model to XML
Import XML to model
Anyway, you don't need to use JAXB, you can use any Java-XML mapping tools.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional