Discussions

XML & Web services: Which is bette/easierr: JAXB or Castor?

  1. Which is bette/easierr: JAXB or Castor? (2 messages)

    I need to input/output some object graphs (fairly involved) to and from xml. Obviously I'm considering Castor and JAXB, but haven't used either, only things like JAXP and JDOM etc.

    Which is easiest to use? I just want a simple xml file here with each attribute (invoked from the getters) output to xml. Thanks
  2. I need to input/output some object graphs (fairly involved) to and from xml. Obviously I'm considering Castor and JAXB, but haven't used either, only things like JAXP and JDOM etc. Which is easiest to use? I just want a simple xml file here with each attribute (invoked from the getters) output to xml. Thanks
    http://xstream.codehaus.org

    http://xml.apache.org/xmlbeans

    http://www.jibx.org/
  3. Hi,

    I used JAXB and it is pretty straight forward.

    I think here are the points to ponder on before using JAXB:
    How frequently your XML will change?
    Is your XML huge and complicated?
    Do you have enough expertise for XSD file?
    Do you need database/persistence help while marshalling or unmarshalling XML?

    Ash