Hi I was wondering why I am getting an xsi attribute coming out in my XML
NB I read the docs on using interfaces, but that mentions I specify it myself in the mapping. I don't, Castor somehow decides that it needs to be output in the XML. The MortgageFeeValue is a concrete class, not an interface. Thanks! This is the outputted XML (with the mysterious xsi attribute): <OtherFee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="FeePaymentDetail"> <ApplicationId>0</ApplicationId> <Amount>50.0</Amount> <Applicable>0</Applicable> <MortgageFee> <Description>Offer revision fee</Description> <CompletionFee>false</CompletionFee> <LegalFee>false</LegalFee> <Overridable>false</Overridable> <FeeDescription>Offer revision fee</FeeDescription> <MortgageFeeId>43</MortgageFeeId> <FeeId>43</FeeId> <FeeType> <Description>Other Fee</Description> <TransactionCode>0651</TransactionCode> <FeeTypeId>7</FeeTypeId> <Mandatory>false</Mandatory> </FeeType> </MortgageFee> <Paid>0</Paid> <PercentageCharge>0.0</PercentageCharge> <Added>0</Added> </OtherFee> This is the mapping for the class: <class name="com.lsb.uk.mqs.value.MortgageFeeValue"> <map-to xml="MortgageFee"/> <field name="description" type="java.lang.String"> <bind-xml name="Description" node="element"/> </field> <field name="completionFee" type="boolean"> <bind-xml name="CompletionFee" node="element"/> </field> <field name="legalFee" type="boolean"> <bind-xml name="LegalFee" node="element"/> </field> <field name="overridable" type="boolean"> <bind-xml name="Overridable" node="element"/> </field> <field name="feeDescription" type="java.lang.String"> <bind-xml name="FeeDescription" node="element"/> </field> <field name="mortgageFeeId" type="int"> <bind-xml name="MortgageFeeId" node="element"/> </field> <field name="feeId" type="int"> <bind-xml name="FeeId" node="element"/> </field> <field name="feeType" type="com.lsb.uk.mqs.value.FeeTypeValue"> <bind-xml name="FeeType" node="element"/> </field> </class> And this is where it's being used: <field name="otherFees" type="com.lsb.uk.mqs.value.MortgageFeeValue" collection="collection"> <bind-xml name="OtherFee" node="element" location="OtherFees"/> </field> Regards Richard Gundersen Java Developer *** Disclaimer *** This electronic communication is confidential and for the exclusive use of the addressee. It may contain private and confidential information. The information, attachments and opinions contained in this E-mail are those of its author only and do not necessarily represent those of London Scottish Bank PLC or any other members of the London Scottish Group. If you are not the intended addressee, you are prohibited from any disclosure, distribution or further copying or use of this communication or the information in it or taking any action in reliance on it. If you have received this communication in error please notify the Information Security Manager at [EMAIL PROTECTED] as soon as possible and delete the message from all places in your computer where it is stored. We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses. We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication. Replies to this E-mail may be monitored for operational or business reasons. London Scottish Bank PLC is regulated by the Financial Services Authority. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

