Given the following xml, how do I specify in my mapping.xml file that
StreetAddress, ZipCode, City, State, maritalStatus, and Smoker all get
unmarshalled to CustomerDetail.java?
================================================================
<GlobalContainer>
<CustomerDetail>
<Address>
<StreetAddress>902 West Street</StreetAddress>
<ZipCode>90210</ZipCode>
<City>Starkville</City>
<State>NY</State>
</Address>
<Demographics>
<maritalStatus>Single</maritalStatus>
<Smoker>N</Smoker>
</Demographics>
</CustomerDetail>
</GlobalContainer>
==================================================================
public class CustomerDetail
{
private String StreetAddress;
private String ZipCode;
private String City;
private String State;
private String MaritalStatus;
private String Smoker;
//Assume getters and setter follow...
}
===================================================================
Any help would be greatly appreciated.
-Clay
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev