File Corruption & Recovery

Fix Word 365 XML Parsing Errors in a DOCX Document

Maira MehtabMaira Mehtab Nov 20, 2026 869 views

Question details

Recover readable content from a Word document that displays an XML parsing error when opened.

Fix Word 365 XML Parsing Errors in a DOCX Document
Product
Microsoft Word for Microsoft 365
Device & OS
not provided
Scenario
Opening a DOCX document whose internal document.xml file may be incomplete or corrupted.
Observed behavior
Word reports an XML parsing error and cannot open the document normally.
Before you start

Copy the DOCX file to a local folder and work on the copy. Note any file name, line, or column mentioned in the XML error message.

Solution 1Recommended

Use Word's Open and Repair option

Try Word's built-in repair tool before editing the document's internal files.

1
Open the file picker

In Word, select File > Open > Browse and locate the copied DOCX file.

2
Run the repair

Select the file, click the arrow next to Open, and choose Open and Repair.

3
Save recovered content

If the document opens, review its contents and use File > Save As to save the recovered version under a new name.

Use Word's Open and Repair option
Recovery may be partial: Open and Repair cannot restore content that is missing from the file.
Free Microsoft Office alternative

Work with Word documents in WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move everyday work from Microsoft Office, although it does not repair Word's XML parsing errors.

Open and edit compatible Microsoft Word DOCX and DOC filesUse familiar document editing controls for everyday writingMove existing Word documents into a lightweight office suiteWork with common Microsoft Excel and PowerPoint formats
microsoft office alternative - wps office

Frequently Asked Questions

What causes an XML parsing error in a Word document?

The DOCX package may contain malformed or incomplete XML, such as a truncated word/document.xml file. An interrupted save is one possible cause.

Where is Open and Repair in Word?

Select File > Open > Browse, select the document, then click the arrow next to Open and choose Open and Repair.

Can I recover text that is missing from document.xml?

Repairing XML can make remaining content readable, but it cannot recreate text that is no longer in the file. Check for another copy or an earlier version if one is available.

How can I reduce the risk when using a USB drive?

Save and close the document on your local drive first, then copy it to the USB drive and safely eject the drive after the transfer finishes.