users@jaxb.java.net

Java objects to XML Mapping.

From: <varun.rally_at_rbs.com>
Date: Wed, 8 Jul 2009 06:37:02 +0100

Hello,
I have few 2 java objects which are populated from 2 different tables. I also have a predefined XML schema in place. The end goal is to generate a XML that confirms to the schema and has data populated from these 2 java objects.

What would be the best API to create XML that confirms to a schema and has data populated from these 2 java objects. I have already tried JAXB, but the problem with that approach is that JAXB generated 120+ Java Classes for 1 XML, which is a huge number, though the actual data we have exists in 2 different objects only.

Please suggest a good API to achieve this functionality.
If JAXB is not the best way to achieve this, please suggest alternate technology.



***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority.
 
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.

Visit our website at www.rbs.com

***********************************************************************************