# XV-MY-34

Source: https://xmlvalid.com/rules/XV-MY-34

> A tax exemption (tax type E) needs its details: cac:TaxCategory/cbc:TaxExemptionReason, up to 300 characters, such as the exemption under the Sales Tax (Persons Exempted from Payment of Tax) Order.

- Level: error
- Rule sets: MyInvois validations of LHDN (Malaysia) MyInvois SDK of 25 September 2026
- Context: `cac:TaxSubtotal`
- Test: `$category ne 'E' or not($stated) or (normalize-space(cac:TaxCategory/cbc:TaxExemptionReason) ne '' and string-length(normalize-space(cac:TaxCategory/cbc:TaxExemptionReason)) le 300)`

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