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开发者_如何学Go what is the other option? What are the pros and cons
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.
精彩评论