Hello;
I have a Javabean (test.castor.MySimpleClass) and I want to marshall it
wih Castor 0.9.5.3.
The unmarhsall method works only if the attribute
xsi:type="java:test.castor.MySimpleClass" is added, but the marsall
method generates the xml file without the
xsi:type="java:test.castor.MySimpleClass" attribute.
the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<vector xsi:type="java:java.util.Vector"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<my-simple-class xsi:type="java:test.castor.MySimpleClass"
primitive-float="87.363" primitive-double="37.266"
primitive-integer="178" primitive-short="16"
primitive-long="8864" primitive-byte="65"
primitive-character="c" primitive-boolean="true">
<object-long>8864</object-long>
<object-short>16</object-short>
<object-integer>178</object-integer>
<object-byte>65</object-byte>
<object-double>37.266</object-double>
<object-string>MyDefaultString</object-string>
<object-character>c</object-character>
<object-boolean>true</object-boolean>
<object-float>87.363</object-float>
</my-simple-class>
</vector>
How can I add this attribute automatically ?
Thanks.
Olivier
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email