问题描述
最近 简单 XML 框架 流行起来,一些 网站 正在展示它.
我正在考虑用一个新框架替换 Apache Xerces-J,并且我正在考虑将 Simple 作为它的继任者.
I am thinking about replacing Apache Xerces-J with a new framework and I am considering Simple to be its successor.
您是否有使用简单的经验?
它的优缺点是什么?
是否建议与企业软件一起使用/在 servlet 容器或应用程序服务器中使用?
Do you have any experiences with Simple?
What are its advantages and disadvantages?
Is it recommended for the use with enterprise software/within a servlet container or application server?
推荐答案
JAXB 是 企业标准,用于将对象转换为 XML 或从 XML 转换.有很多实现:Metro(Java SE 6 中包含的参考实现)、EclipseLink MOXy(我是技术负责人),Apache JaxMe(不再维护)等
JAXB is the enterprise standard for converting objects to/from XML. There are many implementations: Metro (the reference implementation included in Java SE 6), EclipseLink MOXy (I'm the tech lead), Apache JaxMe (no longer maintained), etc.
在企业方面,JAXB 是 Java EE 5 和 Java EE 6.它是 Java Web Service 标准的绑定层:JAX-WS (SOAP) 和 JAX-RS (REST).这意味着所有应用服务器供应商都支持它:Oracle、IBM、SAP、JBoss 等.
In terms of enterprise, JAXB is part of Java EE 5 and Java EE 6. It is the binding layer for both Java Web Service standards: JAX-WS (SOAP) and JAX-RS (REST). This means it is supported by all the application server vendors: Oracle, IBM, SAP, JBoss, etc.
Spring 也很好地支持所有 JAXB 实现:
All JAXB implementations are also well supported in Spring:
JAXB 和 Simple 的比较请查看:
For a comparison of JAXB and Simple check out:
这篇关于我应该考虑 Java 的简单 XML 框架吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!