Hello everyone, Im trying to set up a mapping for an xml-file that is bound to a xml-schema like this:
(...) <xs:element name="stuff" minOccurs="0"> <xs:complexType> <xs:choice> <xs:element name="element1"> <xs:complexType> <xs:attribute name="attr1" type="xs:decimal" use="optional" /> </xs:complexType> </xs:element> <xs:element name="element2"> <xs:annotation> <xs:complexType> <xs:attribute name="attr2" type="xs:decimal" use="optional" /> <xs:attribute name="attr3" type="xs:decimal" use="optional" /> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> (...) The mapping is set up like this: (...) <structure name="stuff" set-method="setStuff" get-method="getStuff" usage="optional" choice="true" ordered="false"> <structure name="element1" usage="optional"> <value name="attr1" style="attribute" set-method="setattr1" get-method="getattr1" usage="optional"/> </structure> <structure name="stuff2" usage="optional"> <value name="attr2" set-method="setattr2" get-method="getattr2" usage="optional"/> <value name="attr3" style="attribute" set-method="setattr3" get-method="getattr3" usage="optional"/> </structure> </structure (...) But when I try to compile the mapping against my classes, I get the error that "choice=true" cannot be combined with "style=attribute". Is there something I'm doing wrong or any possible workaround? I'm not sure, whether I can get the schema changed (it has already been deliverd to some customer :(), so some possibility to get this to work with JiBX would be greatly appreciated. Greets and regards, Marco ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users