# SE-R-001

Source: https://xmlvalid.com/rules/SE-R-001

> For Swedish suppliers, Swedish VAT-numbers must consist of 14 characters.

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `//cac:AccountingSupplierParty/cac:Party[cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/substring(cbc:CompanyID, 1, 2) = 'SE']`
- Test: `string-length(normalize-space(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)) = 14`

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