Repair a DOCX XML Parsing Error at Line 2 in Microsoft Word
Question details
The user needs to recover a DOCX document that Word cannot open because of an XML parsing error.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Opening a DOCX file that reports an XML parsing error at line 2.
- Observed behavior
- The document does not open, and the error points to line 2 and a very large column number.
Make a copy of the affected DOCX file and note the full error message, including any file path and column number. Check whether an earlier version is available in the document's storage location.
Use Microsoft Word Open and Repair on the DOCX File
Try Word's built-in repair option first to recover the contents of the damaged document.
In Microsoft Word, select File > Open > Browse and locate the copy of the DOCX file.
Select the file, choose the arrow next to the Open button, and select Open and Repair.
If the document opens, check its contents and use File > Save As to save it under a new name.

Restore an Earlier Version or Seek DOCX Repair
Use this approach if Word cannot open or repair the document.
Open and Edit Recovered Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easy to move to WPS after recovering a usable document. It does not necessarily repair the underlying DOCX XML error.

Frequently Asked Questions
What does an XML parsing error at line 2 mean?
It usually means Word encountered invalid or corrupted XML inside the DOCX package. A large column number can occur because XML content is stored on a very long line.
Where is Open and Repair in Word?
Go to File > Open > Browse, select the DOCX file, then choose the arrow next to Open and select Open and Repair.
Can I recover an earlier version of the document?
If the document was stored in OneDrive and version history is available, select the file on the OneDrive website and open Version history to review or restore an earlier version.
Should I send the damaged DOCX to a repair specialist?
A trusted specialist may be able to repair the XML if Word cannot. Send a copy through a private, trusted transfer method rather than posting a public link.




