Page 1 of 1
[Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 4:26 pm
by roddssd
Hi, i have the same problem and can't find a solution.
Acknak, how did you do it?
Re: [Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 5:06 pm
by RoryOF
Use an archive manager to open the .docx file, then edit document.xml (in the word folder therein) with an XML editor, removing the duplicate tag. Rebuild the .docx file.
Re: [Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 5:23 pm
by acknak
It takes longer to explain than to fix
The xml code for the document has some trivial errors. The errors prevent OO from accepting the document but they are quite easy to fix with a text editor.
For example, this line from the xml has two repeated attributes, which makes the xml invalid even though it doesn't really change anything:
<w:color w:val="365F91" w:themeColor="accent1"
w:themeShade="bf" w:themeColor="accent1" w:themeShade="bf"/>
It's just a matter of locating the invalid lines and editing the xml to remove the repeated attribute(s).
Re: [Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 7:28 pm
by roddssd
Well, thanks for helping!
I've been trying that, but i can't see any repeated attribute in document.xml.
i got this one...
https://drive.google.com/open?id=0Bx1xC ... 0FMRmU1R2s
When try to open mi .docx, it shows me this message: "SAXParseException: '[word/document.xml line 2]: Attribute w:themeTint redefined
', Stream 'word/document.xml', Line 2, Column 219763(row,col)."
Re: [Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 7:43 pm
by RoryOF
Please send me a PM with an email address to which I can return the corrected file.
Re: [Solved] LibreOffice File format error found at SAXParse
Posted: Mon Jul 17, 2017 8:26 pm
by roddssd
Thank you!
It's working now.