File Corruption & Recovery

Fix a Word Document.xml Error at Line 2, Column 0

John WilsonJohn Wilson Nov 25, 2026 868 views

Question details

Recover a DOCX file that reports a document.xml error and prevent the error from returning after saving.

Fix a Word Document.xml Error at Line 2, Column 0
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the repair dialog

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

2
Open and repair the file

Select the arrow next to the Open button and choose Open and Repair.

3
Save as RTF

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.

4
Convert back to DOCX

Close the RTF file, reopen it in Word, and select File > Save As. Choose Word Document (*.docx) and save it under another new name.

5
Check the result

Close and reopen the new DOCX file in Word. Check whether the XML error returns and review the document's formatting and content.

Repair the Word document and convert it through RTF
Review the converted document: RTF conversion may alter formatting or omit features that the format does not support. Compare the recovered document with the original where possible.
Free Microsoft Office alternative

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.

Open and edit documents in WPS WriterCompatible with Microsoft Word DOCX and DOC formatsA familiar interface for a smooth transition from Microsoft OfficeFree and lightweight for everyday document work
microsoft office alternative - wps office

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.