Hi all,
I'm a newbie with castor. I have generated java classes from a xsd schema like
this :
<xs:element name="complex-value">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Naturally I obtain a class like this :
public class ComplexValue {
private java.lang.Object _anyObject;
/**
getter et setter
**/
}
Marshalling I obtain:
<complex-value>
<map-item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:java="http://java.sun.com"
xsi:type="java:org.exolab.castor.mapping.MapItem">
<key xsi:type="java:java.lang.String">mavalue</key>
</map-item>
</complex-value>
But I need:
<complex-value>
<A>
<key xsi:type="java:java.lang.String">mavalue</key>
</A>
</complex-value>
I tried with XmlElement annotation but nothing happened.
Someone can help me ?
Thanks,
Tom