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:646910.

Anonymous
2011-03-19T21:04:50+00:00

Hiii... I saved a document on my computer and when I tried to re-open it, just couldn't... I found this error message: 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:646910. I already tried to open the file with notepad but i dont understand anything that appears there... i only get nonsense letters and symbols... :s Can anyone help me pleasee??? And if soo... where can i upload the file??? pleaseeeee... i'm soooo frustrated!!!!  i really appreciate if someone can help me... I already uploaded the file...  http://www.4shared.com/dir/Qf2ia9fp/sharing.html Thank youuu!!!!

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-03-19T23:31:05+00:00

I believe the 13th <mc:AlternateContent> tag had no close. I manually added the closing tag and was able to open the document without further repair.

A copy of the repaired .DOCX can be found here:

http://cid-161352ce07628e22.office.live.com/view.aspx/Social%20Answers%20Examples/Moreno%5E_FIXED.docx

I heartily recommend that you seriously proofread this repaired copy for lost content before submitting to your client or boss.

Now... where's my margarita?

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2011-11-07T21:55:55+00:00

... unfortunately continuing to work on the file, I find again the same problem ...

If I remember correctly, the problem with your DOCX was an oMath mismatch. You should try the fix available here,

You receive an "end tag" error when you open Word 2007 or 2010 files

... How do you fix it?

If you make sure that your Office software suite has all applicable service packs and other updates applied, the instances of this problem are greatly reduced.

Was this answer helpful?

0 comments No comments

49 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-03-21T18:37:12+00:00

    Hi Jeeped,

    What you have found was, indeed, the error; this is a new type of corruption that is starting to appear - Microsoft have told me nothing has changed but something, somewhere, certainly appears to have done - and well done for fixing it - especially in Notepad; the more people who can do this the better.

    The correct construct looks like this (apologies in advance for the formatting - I don't see any tools in this forum):

    <mc:AlternateContent>

        <mc:Choice requires = "wps">

            Word 2010 xml

        </mc:Choice>

        <mc:Fallback>

            Word 2007 xml

        </mc:Fallback>

    </mc:AlternateContent>

    When Word 2010 reads the xml it reads the "wps" Choice section - the Word 2010 graphics format code - and ignores the rest. Earlier versions of Word will read whatever is in the Fallback section (which should be a Word 2007 format graphic) and ignore the Choice.

    Requires="wps" does not actually _mean_ Word 2010, but in this case it implies it. The contents of the two lots of xml are, typically, a <drawing> structure for 2010, and a <pict> structure for 2007.

    When there is no fallback, the document will open in earlier versions, but there will simply be nothing in place of the image. I can not reconstruct the required pict structure - although it would be fun to try - and I don't think Yves can either, so we add a basic Fallback construct containing a text placeholder, so that anyone opening the document in Word 2007 is notified that something is missing.

    Ideally the document owner will fix the problem once they can open the document but, unless they are running multiple versions of Word - which isn't common for normal users - it will be very hard for them to know whether they have done so.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-03-21T16:37:48+00:00

    @Yves,

    Before I start, please let me reaffirm both my admiration and respect for what you have done in the area of repairing errant .DOCX's to a readable content.

    With that said and getting back to programmer mode, I used nothing higher than Excel and Notepad to resolve the issue.

    After unRARing the .DOCX, I found that word\document.xml would not open in Excel and gave the same error that was stated in the OP, so I was back to Notepad.

    All of my original efforts were directed at the <w:r> tag ( start and /finish). These efforts went nowhere, so I started looking for the <mc:AlternateContent> tag.

    With a little effort I found that the 13th <mc:AlternateContent><mc:Choice Requires="wps"> actually ended with

    </mc:Choice></w:r>

    ... instead of this,

    </mc:Choice></mc:AlternateContent></w:r>

    ... so I fixed it.

    I know that this is programmable through reiterative nested loops, but I do not have a fail-safe solution just yet.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-03-21T13:42:25+00:00

    I think you're probably right, Yves.

    I have also fixed this document - see the other thread about it: http://answers.microsoft.com/en-us/office/forum/office_2010-word/the-name-in-the-end-tag-of-the-element-must-match/822aa574-7151-e011-8dfc-68b599b31bf5

    Was this answer helpful?

    0 comments No comments