hi there I have one address class, that I want to map all address data into, however, sometimes the element is a different name and namespace.
<ns3:Addresses xmlns:ns3="http://namespace/integration/Profile/1.0"> <ns7:AddressLine1 xmlns:ns7="http://namespace/integration/Address/1.0">Address Line 1</ns7:AddressLine1> ... </ns3:Addresses> <ns4:ShippingAddress> <ns5:AddressLine1 xmlns:ns5="http://namespace/integration/Address/1.0">Address Line 1</ns5:AddressLine1> ... </ns4:ShippingAddress> both these can be included in a response from the webservice (not implemented by us, and therefore not changable) existing mapping that works for one of the elements <class name="mypackage.AddressImpl"> <map-to xml="Address" ns-uri="http://namespace/integration/Address/1.0" ns-prefix="ns4" /> .... </class> if I try declare twice, I get the org.exolab.castor.mapping.MappingException: A mapping for class mypackage.AddressImpl already exists exception. any way for me to achieve this??? Thanks in advance -- View this message in context: http://www.nabble.com/mapping-one-class-to-multiple-elements-tp25346184p25346184.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

