Repair a Word DOCX Header or Footer XML Parsing Error
Question details
Recover a DOCX document that Word cannot open because of XML parsing errors in header or footer components.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Opening a large DOCX document containing many headers and footers.
- Observed behavior
- Word reports an XML parsing error in a header or footer XML file, preventing the document from opening normally.
Note the XML file name and any line and column number shown in Word's error message. Work on a copy of the DOCX file, and make sure you have access to a ZIP utility and an XML editor if manual repair is needed.
Use Word's Open and Repair command
Try Word's built-in repair option before editing the document's XML components.
In desktop 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 option is available.
If the document opens, inspect its headers and footers, then select File > Save As to save a repaired copy under a new name.

Inspect and repair damaged header or footer XML
Use this advanced method if Open and Repair fails and Word identifies an XML component.
Work with recovered Word documents in WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing compatible Word documents. After recovery, you can move your document into WPS Writer for continued work; it does not repair Word's XML parsing errors.

Frequently Asked Questions
Where can I find the damaged header or footer XML file?
Check Word's error message for the component name. After extracting a working copy of the DOCX as a ZIP archive, look for that file in the extracted word folder.
What if Word reports errors in many headers and footers?
Try File > Open > Browse > Open and Repair first. If manual repair is necessary, inspect each reported XML component in an XML validator; extensive damage may require specialist recovery.
Will repairing the XML restore all my headers and footers?
Not necessarily. Repair may make the document readable without restoring missing content, so inspect the headers and footers after opening and saving the repaired file.
When can I delete a publicly shared copy of the document?
First download or save the repaired copy, open it, and confirm that you can retrieve and use it. Then delete the publicly shared file from the service where it was uploaded.




