Well, the objects are not at all close enough to schema. As I mentioned there are 2 objects that hold information in various instance variables. These variables need to be populated in XML tags.
Varun Rally
Technology Services India
The Royal Bank of Scotland Group
O +91 124 479 1583
M +91 98990 37800
F +91 124 <Office fax number>
varun.rally_at_rbs.com
RBS India Development Centre (P) Ltd
Building Number 7B, DLF Cyber City, Phase III
Gurgaon-122002 (+91 124 4790000)
-----Original Message-----
From: aleksei.valikov_at_gmail.com [mailto:aleksei.valikov_at_gmail.com] On Behalf Of Aleksei Valikov
Sent: 08 July 2009 12:41
To: users_at_jaxb.dev.java.net
Subject: Re: Java objects to XML Mapping.
Hi,
> So with JAXB, it is possible to use pre-existing Java objects and
> annotate their fields to create a XML that confirms to a particular schema. Is that correct?
Yes, if your objects are close enough to schema.
> If yes, how JAXB will find all classes that have annotations.
It's all in the spec. :)
Bye.
/lexi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
***********************************************************************************
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
***********************************************************************************