Error: SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: hyperlink line 0 and p

Hello everybody, could someone please help? I cannot load my document fully, the error is "An error occurred during opening the file. This may be caused by incorrect file contents.
The error details are:
“SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: hyperlink line 0 and p”
Please help!!!
Acosta, Acosta y Ladio-vistoJMA-Res-Disc.docx (89.2 KB)

Hi everyone,

I have this same problem, and I cannot fix it. Could anybody help, please?

The error details are:
“SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: sdtContent line 2 and del”

I have tried to fix it myself, but I am afraid this is beyond my ability.

Acosta, Acosta y Ladio-vistoJMA-Res-Disc.docx (89.0 KB)

1 Like

Dear Mikekaganski, thanks a lot!!! You saved me!!!

what was the problem? I inspected the document.xml in gvim and the file was complete…
could you be so kind to explain it to me?

Thank you so, so much!!!

The problem was LibreOffice (of a very old version) writing an XML element’s closing tag out of order. Moving the tag to the proper place fixed this.

1 Like

Dear Mike,

If it’s not too much to ask, would you mind deleting the download link to the document now? The document includes the work of several people and I wouldn’t want to infringe on anyone’s authors’ rights. Again, thank you so much. You have really saved my day!

I have installed Version: 6.1.5.2… will installing version 7.6 solve this problem?

I hope so. Unfortunately, the support of change tracking in DOCX (a highly complex topic) is imperfect, and the constant flow of similar (not same) errors shows that, fixing some bugs, new emerge; but of course, one always needs to use native file format (ODF in case of LibreOffice) when saving documents; and only export to external file formats (like DOCX) when already having native file saved.

1 Like

Thanks a lot for your time in explanations and file corrections!!

All the best!!!

@mikekaganski good afternoon. Plis, which closing tag you move? from where to? I have a same problem and i see you correcting the error in many questions/issues. Unfortunately, i can’t send the file because privacy questions. How i resolve this? Tks