Fixing MS Word error: “ The name in the end tag of the element must match the element type in the start tag”

Word corruption or crashing issues are becoming common for Word users. I have seen so many forum thread related to this issue. It seems that every second user of Word is facing the same corruption or crashing issue. You must have seen strange error message when you try to open or save your Word document. Sometime people assume that their document gets corrupt because they have receive error message and they have no option but to use third party tool to help get data back. This is not true, you can yourself fix your data by using free methods provided by Microsoft but if that does not help you then only you should go for third party tool.
So lets consider a real life scenario wherein you try to open your Word document and receive below error message:



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


 When you click on detail button you will receive below additional information:

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

Cause: This problem is related to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation as shown in below image.

Solution: To fix the issue you have four methods. If one solution does not help you then try another.

Method 1: Download and install Office 2010 Service Pack 1: It will resolve the issue for new files.

Method 2: Correct incorrect XML tags: If you know XML then you can yourself fix the problem by correcting oMath tags.
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>

Method 3: Grouping objects: Follow below steps to solve the problem:

For Word 2010:
  1. Open your recovered document.
  2. Go to Home tab-> Selection pane.
  3. In the Editing group of  Home tab click the Select dropdown and then click the Selection Pane.
  4. A task pane will be open that  allow you to see the different objects on current page.
  5. Now hold the Ctrl key and click each text box in the Selection Pane.
  6. To group all the objects together,Under Drawing Tools, on the Format tab, in the Arrange group, click Group, and then again click Group. 
  7. Once you group all the objects on each page, save the file with a new name.

Method 4: Save your document in .rtf file format.

For Word 2007 and 2010:
  1. Open your document.
  2. Go top File-> Save. ( For Word 2007 go to Office Button-> Save As)
  3. Now in the Save As dialog box click dropdown and select .rtf format.
  4. Save the document.   

Comments

Popular posts from this blog

How to Fix Issues with Excel File Save

How to resolve MS Access error “Cannot find the database you specified”?

How to resolve Excel error “MS Office Excel is waiting for another application to complete an OLE action"