Java-XML data binding tools competition

zhaozj2021-02-08  427

Map the Java object into XML document, which is a new idea for the persistence of Java objects. In an article in XML.com, the author compares four major Java-XML mapping tools:

Breeze XML Binder, A Tool Produced by Breeze Factor Castor, An Open Source Project Under Exolance, Created by Sun Xgen, a Tool Product by Sun Xgen, a Tool Product by Sun Xgen, A Tool Produced by Commerce ONE.

Comparison standards mainly include the following: (1) Support for the XML Outline (SCHEMA) characteristics; (2) Generate the availability of Java code; (3) Java-XML conversion (and reverse conversion) work.

The results of the test are as follows. It can be seen that Sun's JAXB reference implementation has a great performance, both of which are second only to Xgen, regardless of the performance of performance or characteristic. This makes me a little more confidence in JAXB.

Feature Breeze Castor JAXB RI XGen Customization Disallowed Package Name Mapped from Namespace 1 Automatic Unmarshaling Open Source 2 Free of Charge Schema Location Roundtrippable Schema Location Settable 3 3 Schemas without a Target Namespace Supported Instance Validation on Unmarshal 4 Constraint Check of Values ​​on Set 5 Value Validation When Marshaling 5 Code Generation Command Line Tool Interface Code Generation GUI Interface Generated Code Implements Generic Interfaces 6

1 - mapped if no other package name is specified.2-- jaxb will be available as an open source project in The Upcoming Future. More information can be found at http://jaxb.dev.java.net/.3 - - ONLY ON MARSHALLER CLASS.4 - OFF BY Default.5 - Some Values ​​Validated.6 - Interfaces Based ON Functionality Instead of Type OF XML Schema Construct.

转载请注明原文地址:https://www.9cbs.com/read-753.html

New Post(0)