Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi :)
I've heard Emacs is excellent.  Good choice.  

It's pretty rare for LO to corrupt anything.  If anything goes wrong with a document it's usually 
due to some other 3rd party tool (such as Word) and even then it only seems to be DocX or in rare 
cases Doc.  We've only had a couple of cases of Odts going wrong in the whole of the last 2 years 
as far as i can remember.  Not bad out of 60million users!  
Regards from
Tom :) 





________________________________
From: Joel Madero <jmadero.dev@gmail.com>
To: users@global.libreoffice.org 
Sent: Saturday, 5 January 2013, 18:54
Subject: Re: [libreoffice-users] Corrupted File

On 01/05/2013 04:31 AM, Regina Henschel wrote:
Hi Joel,

Joel Madero schrieb:
Hi All,
I have a corrupted file and it's important, hoping I can recover -- my
backup works but it's a month old and it's missing some data, worst case
it'll do but I'd prefer getting the up to date one fixed. Error is:

Read-Error.
Format error discovered in the file in sub-document content.xml at
2,1197863(row,col).


When I try opening content.xml with firefox I get

XML Parsing Error: duplicate attribute
Location: file:///tmp/.fr-lMJsLA/content.xml
Line Number 2, Column 1197864:


Any suggestions on how to fix this? Not confidential information so I
can send it to someone to look at. Thanks in advance

I have currently not time enough to repair it for you, but here is, what you need to do:

- Make a copy of the file and work on the copy.
- Unzip the file. Depending on your unpacker, you might need to change the filename-extension 
from .odt to .zip. You will get a folder.
- Go inside the folder. You will see the file content.xml
- Open the file with an editor, that is able to handle UTF8 and Unix line ends.
- Go to the place, which is given in the error message. You will see two identical parts of the 
kind foo="bar". Remove one of them. Save the file. Be sure to use UTF8 and Unix line ends.
- Mark all content of the folder and zip it. You will get a file, with filename-extension .zip. 
Change the filename-extension to .odt.

If all went well, you can open the file now. If it is not a text file, you have of cause to use 
the appropriate filename-extension.

Kind regards
Regina



Excellent, thanks for the advice to both of you. I used emacs and discovered the error - my bigger 
concern now is that LibO did this to begin with :-/


Best Regards and Thanks Again,
Joel

-- For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.