# CII-EXT-DT-018

Source: https://xmlvalid.com/rules/CII-EXT-DT-018

> TypeCode should not be present

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (CII) 1.4.0.04
- Context: `//ram:*[ends-with(name(), 'ReferencedDocument')]`
- Test: `not(ram:TypeCode) or (self::ram:AdditionalReferencedDocument) and (ram:TypeCode='50' or ram:TypeCode='130' or ram:TypeCode='916') or self::ram:InvoiceReferencedDocument`

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