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
-
Which is bette/easierr: JAXB or Castor? (2 messages)
- Posted by: Tracy Milburn
- Posted on: July 26 2004 12:57 EDT
Threaded Messages (2)
- Which is bette/easierr: JAXB or Castor? by Sean Sullivan on July 26 2004 13:11 EDT
- Which is bette/easierr: JAXB or Castor? by Ash H on July 28 2004 10:42 EDT
-
Which is bette/easierr: JAXB or Castor?[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: July 26 2004 13:11 EDT
- in response to Tracy Milburn
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/ -
Which is bette/easierr: JAXB or Castor?[ Go to top ]
- Posted by: Ash H
- Posted on: July 28 2004 10:42 EDT
- in response to Tracy Milburn
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