Hi everyone, I am using mapping file for marshalling and unmarshalling. The marshalling works wery well, I have succeded to change the class name from the java class to the xml instance, but the unmarshalling does not take account of my mapping file for the reverse operation. I do not know why...
Problem description: I have succeded to marshall the class 'xxx.Device' and changed its name by 'yyy.MyDevice' within the xml schema instance, but when I unmarshall 'yyy.MyDevice' from the xml instance then castor does not take account of my mapping file and try to create an instance of 'yyy.MyDevice' while 'xxx.Device' was expected. Both java beans 'xxx.Device' and 'yyy.MyDevice' have the same properties. My mapping file is as follow: <?xml version="1.0"?> <!DOCTYPE databases PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd"> <mapping> <description>Mapping intended for the client side</description> <class name="xxx.Device" auto-complete="true" > <map-to xml="java:yyy.MyDevice"/> </class> </mapping> My Xml instance is as follow: <SetOfDevices> <profite>123</profite> <devices> <elements xsi:type="java:yyy.MyDevice" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name>XV234</name> <type>Engine</type> </elements> <elements xsi:type="java:yyy.MyDevice" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name>GH67</name> <type>Gear</type> </elements> </devices> </SetOfDevices> Is there any description missing in my mapping file ? Christian Nicolas ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev