# CII-DT-022

Source: https://xmlvalid.com/rules/CII-DT-022

> AttachmentBinaryObject should not be present

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

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