Office

  • Office 2010
  • Office
  • All forums
Question

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

Applies To:

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

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation
19 People had
this question

Was this helpful?

2

Votes

Answer

Chinese documents suffer the same problems as other language ones :-(

Please see http://cid-142722a74d07b70e.office.live.com/self.aspx/.Public/%e9%a1%8c%e7%9b%ae%20Rebuilt.docx#resId/142722A74D07B70E!149

The error was with the equation at the bottom of page 1, following 1所示:getting tangled up with the textbox beside it.

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Tony Jollans

Tony Jollans MVP
Enjoy, Tony
www.WordArticles.com

Was this helpful?

Answer

Hi Andrew,
 
 
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
    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Tony Jollans

Tony Jollans MVP
Enjoy, Tony
www.WordArticles.com

Was this helpful?

1

Vote

I have uploaded a copy of the fixed file, temporarily, tohttp://www.wordarticles.com/temp/2010%2010%2014%20-%20AH%20Statistics%20Text.docx
 

Enjoy,
Tony
www.WordArticles.com
    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Tony Jollans

Tony Jollans MVP
Enjoy, Tony
www.WordArticles.com

Was this helpful?

Many, many, many thanks. Hugely appreciated.

Andrew

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Was this helpful?

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

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Was this helpful?

Answer

Hi Andrew,
 
 
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
    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Tony Jollans

Tony Jollans MVP
Enjoy, Tony
www.WordArticles.com

Was this helpful?

Tony,

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

Andrew

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Was this helpful?

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

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Was this helpful?

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

See  http://www.sendspace.com/file/a6ll33 

The error was in the first table. Nothing is lost normally, but you might want to verify that part closely.

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Was this helpful?

4

Votes

I have written an AddIn that attempts to deal with these problem documents - it's still in testing, but if you download it from here:http://www.wordarticles.com/temp/Rebuilder.dotm - it's a .dotm Word template - and copy it to your startup folder (by default "%appdata%\Microsoft\Word\Startup"), then start Word and you will have an extra tab on your Ribbon called "Broken Documents". If you click the button on the tab, you can then select your file and it should be repaired. The original file is not changed, but a new document called "original-file (Rebuilt)" is created and opened. This doesn't mend all broken documents - just ones created in Word 2010 containing equations and exhibiting this particular symptom - and, even then, I can't guarantee it, but if it doesn't work in your case, come back and I will take a look at the document.
 

Enjoy,
Tony
www.WordArticles.com
    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Tony Jollans

Tony Jollans MVP
Enjoy, Tony
www.WordArticles.com

Was this helpful?

I've been following this (and the other) thread with interest, as an exercise in trouble shooting code. I still haven't found an ideal tool but today I found one that is pretty good.  XML Marker V1.1 (free), http://symbolclick.com/download.htm, identified 3 pairs of start and end codes that it couldn't match up properly in the example file.

The feature I like is that you can click on the start or end tag and it will jump you to that location.

The problem I still have is that like all of the other xml editors it displays the xml as a long string, making it basically unreadable. Trying to manually insert indenting is an exercise in futilty.

Tony or Yves, do you know of an xml tool that will at least try to parse a straight string of code into an indented presentation to make it more readable?


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.

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Rohn007

Install this great addin:
www.officelabs.com/projects/searchcommands/Pages/default.aspx

Was this helpful?

Oops, I stand corrected, XML Marker does indentation. The errors disappeared. I gotta check if that is right.
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.

    • Child exploitation or abuse
    • Harassment or threats
    • Inappropriate/Adult content
    • Nudity
    • Profanity
    • Software piracy
    • SPAM/Advertising
    • Virus/Spyware/Malware danger
    • Other Term of Use or Code of Conduct violation

Rohn007

Install this great addin:
www.officelabs.com/projects/searchcommands/Pages/default.aspx
<< PreviousPage of 6 Next >>

Message marked as answers cannot be deleted

To delete this message, first unmark this message as an answer, then delete it.

Reason to remove escalation


Merge

Enter the thread ID of the thread you are merging into


Reply will be posted to a public thread

You are replying to a public portion of this thread. To reply privately, click Cancel, click the Private Messages tab, and Reply on that private message.

Don't show this message again

To report abuse, sign in or continue without signing in

Thank you.

Report abuse

Abuse type:

Details (optional):

Report abuse

Abuse type:

Details (required):
Enter the characters you see (required):
Type the numbers that you see in the picture.
Play audio and type the numbers that you hear.
Show a different picture.

Sign in

Hotmail, Xbox Live, Messenger, or msn accounts will also work.

Don't have one of the above accounts?

Signing in...
This page will automatically update after you are signed in.
If you are having problems, you can close this message and try to connect again.