Skip to content

DOCX Validation reporting 0 errors on invalid document #592

@rysavyjan

Description

@rysavyjan

[x] Issue with the OpenXml library

Description

Invalid DOCX document that cannot be opened with Microsoft Word 2019 is reported as valid by Open XML SDK Validator.

Information

  • .NET Target: .NET Framework 4.7.2
  • DocumentFormat.OpenXml Version: 2.9.1

Repro

Create a new valid DOCX document containing table and remove <w:p /> child element from <w:tc> parent.

wp

Validation will report 0 errors, while Microsoft Word would report error:
image

I'm attaching such corrupted document.
word.docx

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions