Fix Word 365 XML Parsing Errors in a DOCX Document
Question details
Recover readable content from a Word document that displays an XML parsing error when opened.

- 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.
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.
Use Word's Open and Repair option
Try Word's built-in repair tool before editing the document's internal files.
In Word, select File > Open > Browse and locate the copied DOCX file.
Select the file, click the arrow next to Open, and choose Open and Repair.
If the document opens, review its contents and use File > Save As to save the recovered version under a new name.

Inspect and repair the DOCX document.xml file
Use this method if Open and Repair fails and you are comfortable editing XML.
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.

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.




