9

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?

quietmint
  • 13,885
  • 6
  • 48
  • 73
MRalwasser
  • 15,605
  • 15
  • 101
  • 147
  • 2
    By saying you want to replace Apache Xerces-J do you mean replacing your usage of DOM/SAX with Simple? – Mark Jan 19 '11 at 13:43

1 Answers1

5

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:

For a comparison of JAXB and Simple check out:

Tim Kist
  • 1,164
  • 1
  • 14
  • 38
bdoughan
  • 147,609
  • 23
  • 300
  • 400
  • 2
    I have looked at your reference, and I don't see the point that makes '''Simple''' simple, though I have to admit I never looked at their page. But after having read that reference, I advocate for JAXB, too. – chiccodoro Jan 19 '11 at 13:59
  • 5
    Its a matter of opinion, however JAXB has gone about very simple POJO to XML scenarios in a rather obtuse manner. It is also a very heavy weight solution. Simple works on Java 1.5 and up, as well as Android, and Google App Engine, JAXB does not. – ng. Jul 09 '11 at 14:18
  • @Ng - If you check out my comparison (http://bdoughan.blogspot.com/2010/10/how-does-jaxb-compare-to-simple.html) you will see there is little difference between the JAXB and Simple approaches. JAXB implementations (Metro, MOXy, JaxMe, etc) work perfectly fine on Java 1.5+. If I'm not mistaken you are a contributor on Simple? – bdoughan Jul 09 '11 at 17:51
  • but JAXB does not work on Android, so at certain point, u got to switch to simple for Android. – Albert Cheng Oct 28 '13 at 18:18