Since you already have the classes, you don't need to use the source generator. All you need is the mapping file. Since you generated your mapping file with a tool, you may need to tweak it manually to provide the proper XML output.

As you mentioned, it might be a good idea to have an XSD or DTD for validation purposes, but it's not required.

--Keith

dave wrote:

Here's the situation:
   Hibernate is used as ORM; POJOs and hbm.xml mapping files already exist.
   You would need Unmarshal capability at the server end to convert POJO xml
into POJO java object. Assume Castor is used at both client and server end. My understanding is that you would only need Mapping file to perform
   marsha/unmarshal in the above situation.
   Does one need Castor source code generator here?
I used POJOs(generated from hbm.xml) as input to generate castor mapping.xml using O2xmapper. Is there a tool that can generate XML payload
   from this mapping.xml ?(i.e The Client end need to Marshal POJO into
   this xml payload am talking about).
Is it also good to have XSD generated from this mapping file for
   validation purpose? (This XSD is not used for src code generation).

------------------------------------------------------------------------
Brings words and photos together (easily) with
PhotoMail <http://us.rd.yahoo.com/mail_us/taglines/PMall/*http://photomail.mail.yahoo.com> - it's free and works with Yahoo! Mail.


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to