Incorrect form notes in generated XML-file

When a credit note is created for Invoiced sales order, sales Invoice report shows the correct form notes that were setup in Account Receivable setup module( (i.e)Form Notes for Sales credit note ).But when XML file generated for the invoiced sales order credit note  the xml file shows form notes for SalesInvoice.
Can anyone help me to resolve the issue??