Question

I have an xml file which I want to unmarshal. It is a very simple file with very well defined structure. Do I still need a xml schema to use JAXB? If so what is the other option? What are the pros and cons

Was it helpful?

Solution

No, a schema isn't required. If this is a simple one time thing then the overhead of validating against one may not be worth it. It's up to you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top