Article ID: 2528942 - View products that this article applies to.
Expand all | Collapse all

Symptoms



When you try to open a Microsoft Word 2007, 2010 or 2013 document, you may receive this error message:



In Word 2007 and Word 2010:

The file <document filename> cannot be opened because there are problems with the contents.

Clicking the Details button provides this additional information:

The name in the end tag of the element must match the element type in the start tag.


Collapse this imageExpand this image
2528944



In Word 2013:

We're sorry. We can't open <document filename.docx> because we found a problem with its contents.

Clicking the Details button provides this additional information:

The name in the end tag of the element must match the element type in the start tag.


Collapse this imageExpand this image
2800322


Cause

This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation. The document will display the equation and object on the same line as demonstrated in this image:

Collapse this imageExpand this image
2528945


The error may not occur until the document is saved, re-edited and saved again.


Resolution

Office 2013 and Office 2010 Service Pack 1 resolves this issue for new files. It will also prevent the problem from recurring with any files that were recovered with the Fix it solution in this article.

If you currently have Office 2010 installed on your computer, we recommend that you follow these steps:

Step 1
Download Office 2010 Service Pack 1. To do this, follow the steps provided in this Microsoft knowledge base article:

2460049 - Description of Office 2010 SP1

Step 2
Use the Fix it solution (or manual steps) provided in this article to recover your Word documents that display the error provided in the "Symptoms" section of this article.

To have us recover the corrupted file for you, go to the "Fix it for me" section. If you prefer to fix this problem yourself, go to the "Let me fix it myself" section.

Fix it for me


To fix this problem automatically, click the Fix it button or link. In the File Download dialog box, click Run and then follow the steps in the Fix it Wizard.


This Fix it solution will allow you to recover your file. However, it may not resolve the root cause. You may experience the same symptoms if any further edits to the document occur.

Note: This Fix it solution should only be used if the corrupted Word document contains an equation. If the document does not contain an equation please search the Microsoft knowledge base for another troubleshooting article.

Collapse this imageExpand this image
assets fixit1
Fix this problem
Microsoft Fix it
Collapse this imageExpand this image
assets fixit2



Notes
  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.

Then, go to the "Did this fix the problem?" section.



Let me fix it myself


If you are familiar with editing XML, you can try to fix the problem yourself by correcting the mismatched oMath tags in the document. See the following example:

Incorrect tags:

<mc:AlternateContent>

<mc:Choice Requires=”wps”>

<m:oMath>



</mc:AlternateContent>

</m:oMath>



Correct tags:

<m:oMath>

<mc:AlternateContent>

<mc:Choice Requires=”wps”>



</mc:AlternateContent>

</m:oMath>

Note: You will have to use an application such as Notepad to edit the XML.

Did this fix the problem?

  • Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not fixed, you can contact support.
  • We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email message.

More information

The Fix it solution in this article should let you recover your Word document. However, the symptoms will reappear when you make any further edits to the document unless the core problem in the structure of the document is resolved.

To try to correct the core problem, follow one of these workarounds:

Install Office 2013 or install Office 2010 Service Pack 1

Office 2013 and Office 2010 Service Pack 1 resolves this issue for new files. It will also prevent the problem from recurring with any files that were recovered with the Fix it solution in this article.

To download Office 2010 Service Pack 1, follow the steps provided in this Microsoft knowledge base article:

2460049 - Description of Office 2010 SP1

Grouping Objects

The steps provided work best under Word 2010 and Word 2013:
  1. After you open the recovered document, turn on the Selection pane. This can be found in the Home tab of the ribbon. The editing group of the Home tab has a dropdown button named Select.
  2. Click the Select button, and then click Selection Pane...
  3. Press the Ctrl button on your keyboard and then click each text box in the selection pane.
  4. Click the Group button under the Format tab. This will group all the objects together.
  5. As soon as you have all objects grouped on each page, save the document under a new name.


Save the document in the .RTF file format


The steps provided work for both Word 2007, Word 2010 and Word 2013:
  1. After you open the recovered document, click File and select Save (for Word 2007 click the Office button and select Save As)
  2. In the Save As dialog box, click "Save as type:" dropdown and select Rich Text format (*.rtf).
  3. Click Save.

Click to view this blog for more information about this issue.

Properties

Article ID: 2528942 - Last Review: February 18, 2013 - Revision: 5.0
Applies to
  • Microsoft Word 2013
  • Microsoft Word 2010
  • Microsoft Office Word 2007
  • Microsoft Office Word 2007 (Home and Student version)
Keywords: 
kbfixme KB2528942

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com