|
Hi, I am new to Castor and does not know much about it. I want to use castor for marshelling and unmarshelling also.
My problem is: I have to use same class to represent two different elements in a xml file. Can anyone please help me in this?
I am elaborating my problem.
Sample outputXML:
<inputXML> <CurrentAddress> <CurrentStreet>street1</CurrentStreet> <CurrerntState>State1</CurrentState> <CurrentCity>city1</CurrentCity> </CurrentAddress> <PreviousAddress> <PreviousStreet>street1</PreviousStreet> <PreviousState>State1</PreviousState> <PreviousCity>city1</PreviousCity> </PreviousAddress> </inputXML>
For this purpose I want to use Address class, to represent both the address elements. But I am not getting how to write mapping file for the same.
Guys, please help me in this .
Thanks in advance -Shital
|
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
