Can't open Word File because of end tag/start tag mismatch error...need XML help!

Anonymous
2010-06-09T00:42:38+00:00

I get the following message when i try to open a word document that i desperately need

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

Location: Part: word/document.xml, Line: 2, Column: 96760

I know how to "unzip" the docx files and get to the main document.xml file, but i know nothing about xml programming. Any suggestions? i got an xml editor and found that there are 6 mismatch errors, but i don't know how to fix them. I also don't know how to rezip al the files back into a docx format. I would love any help. Thanks.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2011-04-25T16:26:25+00:00

You're welcome Catherine.

Going forward if you or anyone else comes across this issue again, we have a FixIt solution created that should address this problem.  You can go to the following KB article and it should give you the details about how you can correct these documents.

http://support.microsoft.com/kb/2528942

Brandon

Was this answer helpful?

5 people found this answer helpful.
0 comments No comments

528 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-09-05T16:01:40+00:00

    Hello,

    I, like many of the other people on this report, have received an error in a document with a lot with the microsoft equation editor (I believe version 5 is the one in Word 2010). I myself went into the XML and the line and column that the error mentioned (Line 2 and Column 49830) and nothing seemed wrong. 

    Heres the file: http://www.mediafire.com/?xo80xvt0fxqx9fq

    It seems as though this has been happening more frequently in the past few days... could you possibly file a bug report with Microsoft for it? I wish to continue using Word 2010 in the future for Math homework.

    This is EXTREMELY appreciated.

    Regards,

    nkav

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-09-05T12:38:22+00:00

    I'm having the same problem. Got an assignment due in the morning.

     

    "File corrupted and can't open"

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

    Location: Part /word/document.xml, Line: 2, Column: 45222"

    Please help

    http://www.4shared.com/file/6z-O3osO/Assignment\_-\_Nutrition.html

    The error is different in this case. The archive is corrupted (a docx is nothing more than a zip with a different extension). What Word tries to do is repair the zip so it can open it. It seems to be successful with the exception of 2 files: word/document.xml and word/glossary/settings.xml. Unfortunately word/document.xml is the most important file of the archive as it contained the text you typed.

    Did you try to save the document directly to a flash drive rather than to your hard drive and then copy the result? I'm asking because that is the most common way to get your document corrupted and should be avoided if possible.

    I did an attempt at cleaning up document.xml but I had to remove a lot of things. Basically anything between the lines "fat can be found in milk, dairy products and breakfasts cereals which I eat regularly." and "If I was to drink this, 9.3% of my total energy intake would be wasted on a gross drink!" is lost. By carefully going over the xml you might be able to recuparate more of the document, but that's something you will have to do yourself.

    The zip file you can find at the bottom contains both the 'partially' repaired document, and the document.xml which you might want to go through yourself. Good luck.

    The zipped result: http://www.4shared.com/file/9XiwgDnm/part_repaired.html

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-09-05T12:01:58+00:00

    That's strange because when i try to open the file the error message i get looks like this:

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

    Location: Part /word/document.xml, Line: 2, Column: 2032360

    Interesting. Apparently, Word 2007 is not able to locate the error while Word 2010 is. The machine I normally use for development only has Word 2007 so that's why I couldn't find anything.

    I uploaded a fix at http://www.4shared.com/file/pETzpxEU/STD_-_Assignment_2_repaired.html

    You might want to check the last 3 pages for anything which might have moved a little.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-09-05T09:49:41+00:00

    I'm having the same problem. Got an assignment due in the morning.

    "File corrupted and can't open"

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

    Location: Part /word/document.xml, Line: 2, Column: 45222"

    Please help

    http://www.4shared.com/file/6z-O3osO/Assignment\_-\_Nutrition.html

    Was this answer helpful?

    0 comments No comments