[Castor] generations des classes et Binding file pour castor
Bonjour,
j'essaie de genérer des classes java avec du castor ,mais j'ai un petit probléme:
mon fichier xsd contient deux elements qui ont le méme nom sur des endroits différents du fichier.
castor n'arrive pas à générer mes classes car il trouve un conflis entre les deux elements
je dois donc utiliser le fichier "Binding.xml".
et je ne sais pas comment l'utiliser "Binding.xml"
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<binding xmlns="http://www.castor.org/SourceGenerator/Binding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.castor.org/SourceGenerator/Binding
C:\\Castor\\xsd\\binding.xsd"
defaultBinding="element">
<elementBinding name="R/A/B">
<java-class name="BA"/>
</elementBinding>
<elementBinding name="R/A/B">
<java-class name="BC"/>
</elementBinding>
</binding> |
merci