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-11-28T17:57:45+00:00

    Tony,

     I am having the same problem that Andrew was having do you think you could possibly help me? A mistmatch between the start and end tags.

    http://www.sendspace.com/file/r0woat

    If you could help that would be greatly appreciated

    Nate

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-11-01T20:40:05+00:00

    Tony,

    Once again, many thanks. I owe you a bottle of wine.

    Andrew

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-11-01T16:49:02+00:00

    Tony,

    My document has corrupted again. I have discovered some other issues which I think are related. I have been having numerous printing problems with the document. I had blamed the print server at work but happened to spend some time with one of the printer technicians recently and worked out that the problem lies with the document and not the printers. The problems with the printing seem to begin when the document combines maths equations with graphics. I was creating graphs to show areas under a normal curve and then annotating this by putting equations in text boxes and pointing to parts of the graphic. While printing the printer seems to totally ignore the layered equations, and equations which are wrapping around the graphics seem to be problematic too.

    Not all aspects of the equations will print either however - summation signs, dynamic brackets.

    I tested the printing by printing directly to a printer and compared this to printing directly to a couple of software printers (pdf and xps). They gave exacly the same output as the printer hard copy. Saving the Word 2010 document into PDF first  produces the best copy (summation signs and brackets missing).

    I therefore have a few questions:

    1. I'd like to be able to resucitate the document myself but I can't work out how to find Line 2 Column 610699 (error reference) of document.xml using notepad. Is this possible. Is there software I could use to open a corrupted XML document which will allow me to pinpoint an exact location in the document so that I can try to fix the tag it is referring to?
    2. Is this a problem that is being worked on by Microsoft?
    3. Is there something I should try to do to the document to avoid the corruption?
    4. Would you mind fixing the document again? I have placed it at: http://www.sendspace.com/file/ub6cnj

    Just in case you were interested in seeing what I mean, I have put the last saved PDF version (pre-corruption) of the document at: http://www.sendspace.com/file/t4b2xq. On page 27 for example, you will see the missing summation signs and the missing brackets.

    Many thanks again for your help,

    Andrew

    Was this answer helpful?

    0 comments No comments