使用 JAXB 是否需要架构?
我有一个想要解组的 xml 文件。这是一个非常简单的文件,具有非常明确的结构。我还需要 xml 模式才能使用 JAXB 吗?如果是这样,其他选择是什么?有什么优点和缺点
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不需要架构。如果这是一件简单的一次性事情,那么验证一次的开销可能不值得。由你决定。
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.