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

Anonymous
2010-10-28T11:18:41+00:00

I too am having the problem many people seem to be having on this forum. I have created a fairly large and important document which includes a lot of maths equations and some graphics. Now every time I try to open it it says there is an error with a mismatch between the start and end tags. I have never worked with XML but have tried to find what feels like a needle in a haystack and can't really see how to proceed. Is there any chance you could help? I have uploaded the document to:

http://www.sendspace.com/file/0ecfpu

Many thanks,

Andrew

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
2010-11-01T19:04:17+00:00

Hi Andrew,

The fixed file is at http://www.wordarticles.com/temp/AH%20Statistics%201%20Notes%20-%20Outcome%202.docx

To try to answer your questions:

There is no easy way to do it in Notepad - I generally use Visual Studio; Yves Dhondt - the only other person here, AFAIK, who fixes these documents - has some tool he wrote himself. It isn't very difficult but there is no guarantee of what you will find when you look. Usually - and I'm sure you're right - it happens when equations and graphics are together and an oMath end tag, and perhaps part of the equation it ends, gets misplaced within a structure that is meant to enable the equation be correctly displayed in earlier versions of Word that do not support the new equation engine.

The structure should be:

<mc:AlternateContent>

<mc:Choice>

<m:oMath>

Start of equation

End of equation

</m:oMath>

<mc:Choice>

<mc:Fallback>

Probably some graphics

</mc:Fallback>

</AlternateContent>

but ends up as:

<mc:AlternateContent>

<mc:Choice>

<m:oMath>

Start of equation

<mc:Choice>

<mc:Fallback>

Probably some graphics

</mc:Fallback> </AlternateContent>

End of equation

</m:oMath>

This is a bug so nothing is for certain, and I don't know what circumstances trigger it, or what you can do to avoid it. I also don't know if Microsoft are working on it, although I have informed them and they have replied that 'it has been passed to the appropriate team' or some such.

For my own amusement I am working on an AddIn that will attempt to mend these documents but I don't know how well it will work, yet.


Enjoy,

Tony

www.WordArticles.com

Was this answer helpful?

8 people found this answer helpful.
0 comments No comments

207 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-12-02T08:15:41+00:00

    Hello Tony,

    I am so so sorry to add yet another kind request to your already long list. My fiancé is going crazy, because he is convinced he has lost hours of billable work, which he is going to have to do again, in order to get paid. I downloaded your addin and tried to apply it to the document, but it it tells me there is a x800 error when trying to copy the document.xlm. I've tried it so many times now, but no success. The same error pops up when I try to merely open the document.xlm to have a look at it. I believe the corruption happened as a result of having saved it to a USB drive - he won't be doing that again. :)

    If you could please, please, please have a look at it and maybe work your magic to fix it? 

    Here is the document:

    http://www.mediafire.com/?jvq6432kfdu8l5q

    Any help would be muchly, muchly appreciated. Thank you for all our hard work and efforts.

    PS. I also tried Rohn007's recommended programme, but once again I'm unable to open, copy or do anything with the document.xlm.. :(

    Mena

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-12-01T23:23:16+00:00

    Dear Tony,

    I've attempted to use your AddIn to fix up the same error with my document but it simply tells me "Microsoft Word has stopped working" and makes the whole thing go a bit mental... I can't seem to work it at all. I don't know if this is just something specific to my document?

    I'd really appreciate it if you had a look at it for me, it's a report for school that's taken me quite a long time. I've uploaded it at: http://www.sendspace.com/file/nd2z06

    Thanks a million,

    -Andy

    **Edit: turns out my problems are far more complicated then a simple tag error. I think the entire XML code is scrambled from a certain point onwards - but I know absolutely nothing about the code. Is it still salvageable?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-12-01T00:03:16+00:00

    Take a look at this patch: http://www.sendspace.com/file/sstwus

    I noticed some questionable equations on pg 1 and pg 3.

    Let me know how well it worked out.


    If this proposed solution has resolved your issue(s), please mark it as  Propose as Answer  to let others know the solution that worked for you

    http://office.microsoft.com/en-us/outlook-help/learn-where-menu-and-toolbar-commands-are-in-office-2010-HA101794130.aspx - Silverlight applets Mapping 2003 to 2010 commands for all Office apps.

    http://office.microsoft.com/en-us/training/HA102295841033.aspx - flash applets mapping Office 2003 menus to 2007 ribbon.

    Was this answer helpful?

    0 comments No comments