# F-LIB285

Source: https://xmlvalid.com/rules/F-LIB285

> Attribute mimeCode must be a value from the codelist

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `cbc:EmbeddedDocumentBinaryObject and not(cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'image/tiff' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'image/png' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'image/jpeg' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'image/gif' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'application/pdf' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'text/xml' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'text/csv' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'application/vnd.ms-excel' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or cbc:EmbeddedDocumentBinaryObject/@mimeCode = 'application/vnd.oasis.opendocument.spreadsheet')`

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