Should I consider the Simple XML Framework for Java?

感情迁移 提交于 2019-12-05 21:28:16

问题


Lately the Simple XML Framework gained popularity and some sites are presenting it.

I am thinking about replacing Apache Xerces-J with a new framework and I am considering Simple to be its successor.

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?


回答1:


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.

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.

All JAXB implementations are also well supported in Spring:

  • http://wiki.eclipse.org/EclipseLink/Examples/MOXy/Spring

For a comparison of JAXB and Simple check out:

  • http://bdoughan.blogspot.com/2010/10/how-does-jaxb-compare-to-simple.html


来源:https://stackoverflow.com/questions/4735842/should-i-consider-the-simple-xml-framework-for-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!