# DC510

Source: https://xmlvalid.com/rules/DC510

> Foreign source currency does not match document currency: TaxExchangeRate's SourceCurrencyCode is …, the document currency ….

- Level: error
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `/*`
- Test: `not($rate) or normalize-space($rate/cbc:SourceCurrencyCode) = $currency`

Validate a document against these rules: https://xmlvalid.com/validate
