开发者

Is schema necessary for JAXB usage?

开发者 https://www.devze.com 2023-01-22 17:27 出处:网络
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 a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号