Fix a Word Document.xml Error at Line 2, Column 0
Question details
Recover a DOCX file that reports a document.xml error and prevent the error from returning after saving.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document created in Word 2010 is opened in Word 2013, Word 2016, or another Word version.
- Observed behavior
- Word reports an error in document.xml at line 2, column 0. Open and Repair opens the file temporarily, but the error returns after the document is saved.
Locate the affected DOCX file and make a separate copy to use for recovery. Check that Microsoft Word is available and that you can save the recovered file in a different location or under a new name.
Repair the Word document and convert it through RTF
Use this method when Open and Repair opens the document but the XML error returns after saving.
Saving the recovered content as Rich Text Format (RTF) and then converting it back to DOCX can remove the problematic document structure. Some formatting or features may change during conversion.
In Word, select File > Open > Browse, then locate and select the affected DOCX file.
Select the arrow next to the Open button and choose Open and Repair.
If the document opens, select File > Save As, choose a location, and select Rich Text Format (*.rtf) as the file type. Save it under a new name.
Close the RTF file, reopen it in Word, and select File > Save As. Choose Word Document (*.docx) and save it under another new name.
Close and reopen the new DOCX file in Word. Check whether the XML error returns and review the document's formatting and content.

Restore an earlier OneDrive version of the document
Use version history if the document was stored in OneDrive before the error appeared.
Open and edit Word documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Word documents. Its format compatibility makes it easy to move between Office files, though it does not fix Microsoft Word's XML error.

Frequently Asked Questions
Where is Open and Repair in Word?
Select File > Open > Browse, select the document, and choose Open and Repair from the arrow next to the Open button.
What if the XML error returns after I save the repaired document?
Reopen the file with Open and Repair, save it as RTF using File > Save As, close and reopen the RTF, and then save it as a new DOCX file.
Will converting the document to RTF preserve everything?
Not necessarily. RTF conversion may change formatting or omit unsupported features, so review the new DOCX after reopening it.
Can I recover the document without converting it to RTF?
If the file was stored in OneDrive, right-click it in OneDrive and select Version history to look for a version saved before the error appeared.




