I am learning JAXB, I know it could convert data between java and XML. But in real world, what is usage for this API ?
1. Why will we need to convert java to XML ? storage ? No, we could directly save data into relational database.
2. Why will we need to convert XML to java ? In J2EE, if we have XML data, then we could directly generate page using JSTL xml tag.
I don't know if the higher level API, like Hibernate, is using JAXB ? Or java web service is using it in the lower level. Maybe this is only usage. But for regular developer, JAXB has nothing usage.
If I am wrong, please correct me.
Thanks.
1. Why will we need to convert java to XML ? storage ? No, we could directly save data into relational database.
2. Why will we need to convert XML to java ? In J2EE, if we have XML data, then we could directly generate page using JSTL xml tag.
I don't know if the higher level API, like Hibernate, is using JAXB ? Or java web service is using it in the lower level. Maybe this is only usage. But for regular developer, JAXB has nothing usage.
If I am wrong, please correct me.
Thanks.