dotnet / dotnet/Open-XML-SDK

DOCX Validation reporting 0 errors on invalid document

Open
#592 9 comments 0 reactions 1 assignee Claimed by @tomjebo View on GitHub
no-issue-activity schema
Dominant language
C#
Stars
4.6k
Forks
605
PR merge metrics
No merged PRs in 30d

Description

[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 child element from parent.

![wp](https://user-images.githubusercontent.com/46950152/57427587-d2a61680-7224-11e9-8d01-7373706092c3.png)

Validation will report 0 errors, while Microsoft Word would report error:
![image](https://user-images.githubusercontent.com/46950152/57427641-18fb7580-7225-11e9-898d-7387228f0ce4.png)

I'm attaching such corrupted document.
[word.docx](https://github.com/OfficeDev/Open-XML-SDK/files/3160367/word.docx)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.