Here are some advantages that XMLBeans has over JAXB 2.0:

  • 100% XML Infoset preserving.  XMLBeans preserves all of the information in the XML Infoset.  Not only are comments, processing instructions, and whitespace preserved, but XML data that is invalid or missing from the XMLSchema will be preserved as well.  For example, if a purchase order schema represents a part number as an integer and the part number comes in as a string, the value will be preserved.
  • Native DOM representation.  XMLBeans is backed by a store that allows the XML to be viewed and/or manipulated through either the standard DOM interfaces or through the generated setter/getters.  There’s no performance penalty for this because there’s no copying/cloning necessary under-the-covers when using these representations.
  • XPath/XQuery support.  XMLBeans allows querying and navigating through the object hierarchy using XPath and/or XQuery.
  • Schema metadata access.  XMLBeans has an API that allows access to the underlying XMLSchema metadata through a schema object model API.
  • On-demand validation.  XMLBeans is able to perform validation against the XMLSchema at any time as opposed to only at marshalling/unmarshalling time.
  • Support for pre-1.5/5.0 JDKs.  As already mentioned, XMLBeans can be used with older versions of the JDK.

 

Cheers,

 

            James

 


From: Christian Blavier [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 6:44 AM
To: user@xmlbeans.apache.org
Subject: Regarding JAXB 2.0 ...

 

Hello,

 

A simple question : what could encourage me to use xmlbeans rather than Jaxb2.0 ?

The initial motivation of xmlbeans is to have a full coverage of XML schema ; so do JAXB 2.0.

 

I still see many people prefering xmlbeans to JAXB, and I’m just wondering why :)

 

Thank you for your responses

Christian

>>Register now for BEA World 2006 --- See http://www.bea.com/beaworld<<
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to