users
[Top] [All Lists]

Re: [cinjug-users] Open Source XML Data Binding Tools

To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] Open Source XML Data Binding Tools
From: Kevin F <cj@xxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Jul 2007 10:59:50 -0400
Delivered-to: mailing list users@xxxxxxxxxx
In-reply-to: <0BE974242D712B4B86B49792A69D789C01955F92@xxxxxxxxxxxxxxxxxxxxxxxx>
Mailing-list: contact users-help@xxxxxxxxxx; run by ezmlm
References: <0BE974242D712B4B86B49792A69D789C01955F92@xxxxxxxxxxxxxxxxxxxxxxxx>
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
 


From: Kumar [mailto:kumarkakani@xxxxxxxxx]
Sent: Friday, July 20, 2007 10:10 AM
To: users@xxxxxxxxxx
Subject: [cinjug-users] Open Source XML Data Binding Tools

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

<Prev in Thread] Current Thread [Next in Thread>