Fixing a broken Docx file.

The quick and dirty method

You will need: Basic knowledge of XML or HTML A full featured text editor that supports multiline find&replace and search by line (EditPad Pro) A zip archival program (winzip / winrar) If a file is broken in word 2007, it will display the following dialog box

Clicking on the details section will show you where the problem is located

Word 2007 files are actually zip files containing xml files which is why it gives the location of an xml file. 1. Right click the document file and select open with -> choose program. 2. Select your zip archival program from the list.

3. Navigate to the xml file described in the error (/word/Document.xml)

Save the xml document and drag it back into the archival program to replace the existing xml file. Open word again and take note of the error This error message will be much easier to find (Line 5132 Column 8) . Perform a search and replace for ‘><’ and replace it with >[linebreak]< This will logically space out the document 7.4. Open the XML file with the full featured text editor (this guide will show EditPad) 6. 8. Copy the XML file to your hard drive (keep the decompression program open) 5.

Delete this entire region Note: this will cause a loss of data. Try to open the document in word. 11. Save the XML document and place back into the docx archive (as in step 7) 13. Using the line found as the beginning tag (in this case <m:sSub>) locate the end tag for this tag. If it gives another error. 14.9. repeat steps 8-13 until the document opens . but will at least allow the document to open 12. Open the xml file again (the one saved locally) and navigate to the line given in the error 10.

Sign up to vote on this title
UsefulNot useful