# BR-DE-3

Source: https://xmlvalid.com/rules/BR-DE-3

> Das Element "Seller city" (BT-37) muss übermittelt werden.

- Level: error
- Rule sets: XRechnung 3.0 rules (UBL) 2.6.0
- Context: `/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress | /cn:CreditNote/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress`
- Test: `cbc:CityName[boolean(normalize-space(.))]`

> Das Element "Seller city" (BT-37) muss übermittelt werden.

- Level: error
- Rule sets: XRechnung 3.0 rules (CII) 2.6.0
- Context: `/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress`
- Test: `ram:CityName[boolean(normalize-space(.))]`

## Why it fails

- The seller's postal address has no city: `cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName` (`ram:PostalTradeAddress/ram:CityName` in CII) is missing or empty.

## How to fix it

- Add the city to the seller address. XRechnung requires the city and the post code (BR-DE-4) on top of the country EN 16931 asks for.

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