| Binding is a process through which you create API access to XML data; i.e., you can say
String city = address.getCity(); int zip = address.getZipcode(); int zipExt = address.getExtendedZipcode();
rather than
assert addressElement.getName().equals( "address" ); zipElement = addressElement.getElement( "zipcode" ); zipExtElement = addressElement.getElement( "extended-zipcode" ); int zip = Integer.parseInt( zipElement.getValue() ); int zipExt = Integer.parseInt( zipExtElement.getValue() );
Most commonly, it is accomplished by code generation; however, there are solutions that use other techniques. Code generation is theoretically fastest but creates the bulkiest bytecode. In practice, the CPU caching benefits of small libraries exceed the benefits of code generation so the small, solutions using reflection actually turn out to be faster. For more information, see:
On Jul 20, 2007, at 10:44 AM, Hudson, Loren (GE Infra, Aviation, Non-GE, US) wrote: I'm a little confused about what XML Data Binding is. Does someone have a short description or a URL with information? BTW I use Jdom for all of my xml needs. Thanks, Mike Hudson MDW - Military Data Warehouse Java Developer/Solution Architect Sogeti Consultant loren.hudson@xxxxxx Desk: 513-243-3663 Cell: 513-546-4166 Hello all,
I am researching open source XML data binding tools for our project. There are many options out there. Can anyone compare/suggest a few so that I can decide what suits best for our application. We have been using RAD's (Websphere) in-built bean generator for our past projects. I want to try something open source.
Thanks in advance. Kumar
|