问题
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