JAXB 与 Apache XMLBeans [英] JAXB vs Apache XMLBeans

查看:24
本文介绍了JAXB 与 Apache XMLBeans的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到大于 10Mb 的文件的性能,谁能告诉我哪个更好(JAXB 或 Apache XMLBeans)?

Anyone can tell me which one is better (JAXB or Apache XMLBeans) taking in account the performance for files bigger than 10Mb?

推荐答案

两者都有相似的性能,但是即使 Apache XMLBeans 似乎表现出更好的性能,我通常还是选择 JAXB,因为我不想增加我的应用程序的大小使用第 3 方工具.

Both have similar performances, however even if Apache XMLBeans seems to present better performance, I normally choose JAXB because I don't want to increase the size of my applications with 3rd party tools.

使用 Apache XMLBeans,您需要一个大约 2mb 的小包,它可能很容易学习并且有据可查.完全支持 XSD 规范和命名空间,并且仅通过 XML 架构定义 (XSD) 进行映射.它似乎还使用了已弃用的 API.

With Apache XMLBeans you need a small package around 2mb, it's probably easy to learn and well documented. Have full support of XSD specification and namespaces, and mapping only via XML Schema Definition (XSD). It also seems to use deprecated API’s.

这篇关于JAXB 与 Apache XMLBeans的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆