[Solved] LibreOffice File format error found at SAXParse

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
me-natalie
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

[Solved] LibreOffice File format error found at SAXParse

Post by me-natalie »

Hi,

As everyone here I need some help. I was working on that file, then normally saved it. After few minutes, when I tried to open it - an error occured (File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined
', Stream 'word/document.xml', Line 2, Column 49693(row,col).) But another problem is that my files size's more than 1 MB (maximum allowed size is 128 KiB). How can I 'give' it to You?

I would be very gratefull if You could help me too.

Natalie
Last edited by me-natalie on Wed Nov 16, 2016 5:42 pm, edited 1 time in total.
LibreOffice 5.2 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34613
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] File format error found at SAXParse

Post by RoryOF »

Upload it to a file sharing site and post the link here.

Are you working in .docx format?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
me-natalie
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: [Solved] File format error found at SAXParse

Post by me-natalie »

Right, I forgot about that simple way. Thanks for quick reply.

https://1drv.ms/w/s!AjOTKXz3moHDifZl9wXVm3oricWvfA

Edit: yes, it's in .docx. And also I found out, that that link may not work. Or rather - link works, but I'm not sure if you could download that file.
LibreOffice 5.2 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Post by John_Ha »

The file cannot be downloaded - it just give an error message that Word OnLine cannot open it.

Can you make the file downloadable? Or rename it to fred.xxx - that will prevent Word trying to open it.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
me-natalie
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Post by me-natalie »

Yes, I saw that, when I tried to test that link, but had no idea how to repair that. As you said I've changed file extension. Hope it works.

https://1drv.ms/u/s!AjOTKXz3moHDifZppC_Ax8b9X5ENsA

Thank You
LibreOffice 5.2 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Post by John_Ha »

Try this one Broken file jh.odt
 Edit: Edit to correct error 
It was quite peculiar. I noticed it is a .doc file, so .. It is a .docx file but I renamed it to .doc in error. When I attempted to open it Writer offered to repair it but I did not want to repair it until I had checked its size so I closed the pop-up window with the " X ". The window came back several times and I closed it each time with the " X ", then Writer suddenly opened the document! I saved it as a .odt file.

See [Tutorial] Differences between Writer and MS Word files for why you should always work in and save files as .odt.

If this solves the problem, please click the Edit button on your original post and add [Solved] in front of your subject.
Last edited by John_Ha on Wed Nov 16, 2016 5:06 pm, edited 1 time in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
RoryOF
Moderator
Posts: 34613
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Post by RoryOF »

It is docx, John.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: File format error found at SAXParse

Post by John_Ha »

Oops! It is indeed a .docx file - sorry!
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
me-natalie
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Post by me-natalie »

Thank you very, very much! But is it everything you were able to recover? I'm sure I had 26 pages in the original file and there's only 8 in the new one. I am glad you did that (don't think, that I am not! You rescued my work!), but is there any hope to recover other 18 missing?
Last edited by me-natalie on Wed Nov 16, 2016 9:30 pm, edited 1 time in total.
LibreOffice 5.2 on Windows 10
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: File format error found at SAXParse

Post by acknak »

Here's a copy. I just tweaked the document xml; there should be no change in content of formatting.
Last edited by acknak on Wed Nov 16, 2016 9:03 pm, edited 1 time in total.
Reason: (removed attached file)
AOO4/LO5 • Linux • Fedora 23
me-natalie
Posts: 5
Joined: Wed Nov 16, 2016 11:18 am
Location: Poland

Re: File format error found at SAXParse

Post by me-natalie »

Thank you so much guys! And I'm sorry for being such a problem.
LibreOffice 5.2 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] File format error found at SAXParse

Post by John_Ha »

LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Post Reply