[Solved] University essay corrupt with SAXParseExce error

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.

[Solved] University essay corrupt with SAXParseExce error

Postby livewire » Tue Feb 06, 2018 2:38 pm

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


I have attached the document and would appreciate any help with this. I noticed some helpful people have been able to resolve the same error but I couldn't work out the steps.

I have renamed the .docx as a .zip and opened the document.xml in notepad and attempted to remove what I think is the erroneous line of code but i just make things worse with my skills with code!

The .docx file isonly 20 odd kb whereas the douemnt.xml is 200 odd kb I can find parts of plain text from the essay but large sentences spread around at random is my best find.

It always seemed to be before the word preserve.

My Girlfriend saved this as a docx from the get go in Libre and had an issue with her laptop when powering back on the file opens with the error at the start of this post



Any help much appreciated thanks folks :)
Attachments
Family Honours Summative.docx
corrupt file
(22.57 KiB) Downloaded 74 times
Last edited by livewire on Tue Feb 06, 2018 6:22 pm, edited 3 times in total.
Windows 10

Apache Open Office v41.5
livewire
 
Posts: 3
Joined: Mon Feb 05, 2018 11:17 pm

Re: Girlfriends University essay corrupt with SAXParseExce e

Postby RoryOF » Tue Feb 06, 2018 2:55 pm

Try the attached. Please ensure that all content and formatting are as required.

When you examine a .xml file it is best to use an editor that understands XML syntax. I use XML Copy Editor - there are others.
Attachments
Family Honours Summative repaired.docx
(21.72 KiB) Downloaded 79 times
Apache OpenOffice 4.1.6 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29473
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Girlfriends University essay corrupt with SAXParseExce e

Postby livewire » Tue Feb 06, 2018 3:22 pm

Thank you soo much Rory you made that Girls Week!
Windows 10

Apache Open Office v41.5
livewire
 
Posts: 3
Joined: Mon Feb 05, 2018 11:17 pm

Re: Girlfriends University essay corrupt with SAXParseExce e

Postby John_Ha » Tue Feb 06, 2018 4:04 pm

livewire wrote: I couldn't work out the steps

See [Tutorial] How to fix SAXParse errors in LibreOffice files - it is a sticky at the top of this forum.

livewire wrote:My Girlfriend saved this as a docx from the get go in Libre ...

That is a bad mistake.

See [Tutorial] Differences between Writer and MS Word files for why she should always work in, and save files, as .odt. Create a .docx as a copy if she has to, but she should always keep the .odt as the master.

If your problem is solved please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
AOO 4.1.6, Windows 7 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.
John_Ha
Volunteer
 
Posts: 6775
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Girlfriends University essay corrupt with SAXParseExce e

Postby livewire » Tue Feb 06, 2018 6:20 pm

Thanks for the advice, i did try to follow the tutorial but going through and manually deleting the attribute was taking sometime and I wasn't sure exactly where to cut the code. I really appreciate all your help and She is over the moon that she doesn't have to type this again.

I have explained about the odt until the last step and she gets it, thanks again!
Windows 10

Apache Open Office v41.5
livewire
 
Posts: 3
Joined: Mon Feb 05, 2018 11:17 pm

Re: University essay corrupt with SAXParseExce error (SOLVED

Postby RoryOF » Tue Feb 06, 2018 6:24 pm

I was getting multiple "repeated attribute" errors, so I just globally deleted all those attributes.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29473
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 0 guests