[Solved] LibreOffice File format error found at SAXParse

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
ersags
Posts: 3
Joined: Sat Jan 21, 2017 3:08 pm

[Solved] LibreOffice File format error found at SAXParse

Post by ersags »

I too am having a similar error to the OP

File format error found at
SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined
', Stream 'word/document.xml', Line 2, Column 43301(row,col)

I have tried methods 1 and 3 of the link, viewtopic.php?f=7&t=80923&p=404588#p404588 don't have a clue how to do method 2 still can't open the file. The file has tried to be opened in MS Office to see if it can recover it and in desperation I changed the file extension to .odt and open it to see if that would help but no. Does anyone have any other methods I could try please? I have extracted the document.xml file and attached.

Edit:Helps if referring to a link to put it in there!!
Attachments
document.xml
(89.73 KiB) Downloaded 321 times
Last edited by Hagar Delest on Sat Jan 21, 2017 6:24 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.1 on Windows Vista
User avatar
Zizi64
Volunteer
Posts: 11352
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LibreOffice File format error found at SAXParse

Post by Zizi64 »

Similar topics:
viewforum.php?f=101
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: LibreOffice File format error found at SAXParse

Post by RoryOF »

Try this version. Please check that formatting and content are as you expect - you may have to make some adjustments.
Attachments
document.xml
(89.69 KiB) Downloaded 388 times
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
ersags
Posts: 3
Joined: Sat Jan 21, 2017 3:08 pm

[fixedRe: LibreOffice File format error found at SAXParse

Post by ersags »

Thank you so much RoryOF, many hours of my wife's work has been recovered!

If it isn't very complicated I would love to know what you did to recover the file, always good to learn and then hopefully share!
OpenOffice 3.1 on Windows Vista
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: LibreOffice File format error found at SAXParse

Post by RoryOF »

I opened the file in XML Copy Editor. It told me there was a duplicate tag at an address. I deleted that tag, told XML C.E. to check if the file was well formed, which it was, so I saved and uploaded the file to the Forum. Had there been another error, I'd have repeated the process of deletion etc until the file was clean.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
ersags
Posts: 3
Joined: Sat Jan 21, 2017 3:08 pm

Re: [Solved] LibreOffice File format error found at SAXParse

Post by ersags »

Thank you, I will get XML Copy Editor for future!
OpenOffice 3.1 on Windows Vista
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] LibreOffice File format error found at SAXParse

Post by RoryOF »

If you are running on Windows there may be better XML editors, ones that do more structure analysis. XML Copy Editor only flags an error, it is not specific about the exact tag in error.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply