Guys,

 

I’m generating castor objects from an xsd and it the xsd has several element and attribute name conflict.  I used a binding file and it worked well for the elements but not for the attribute.  Tried several combinations of attributeBinding to no avail. Thanks.

 

Mark

 

Binding file snippet

 

<elementBinding name="BankAccount_FR">                    <!—works well for element name conflictà

            <java-class name="BankAccount_FRType"/>

</elementBinding>

 

<elementBinding name="paymentDetails">                      <!—changes the variable name but not the typeà

            <attributeBinding name="action">

                        <member name="paymentActionType"/>

            </attributeBinding>

</elementBinding>

 

<attributeBinding name="[EMAIL PROTECTED]">         <!—no effectà

            <member name="paymentActionTypess"/>

</attributeBinding>

 

<attributeBinding name="//paymentDetails/@action">     <!—no effectà

            <java-class name="paymentActionType"/>

</attributeBinding>

Reply via email to