Corrupted Openoffice files

We’ve been using the latest OO2 beta (97, now 104) in the office. For some reason my brother’s installation was producing corrupted files that couldn’t be reopened. So I tried the simple approach to trying to fix it. Unzip, ran content.xml though firefox and found this error: “XML Parsing Error: duplicate attribute. Location: file:///home/nic/tmp/pp/content.xml Line Number 2, Column 10155:”.

A quick with hack with emacs and then a repack the document with the perl script from: Unpacking and Packing OpenOffice.org files.

It worked! My brother was soon back in business.

Microsoft Office and corrupted files usually means “Don’t pass go”. OASIS is a great file format.

3 Comments

  1. Richard Parry Said,

    June 2, 2005 @ 9:39 am

    You're not wrong. I've been in a situation with a mate, didn't have OO and needed a graphic from inside an emailed OO document. Just unzip, find the image, and viola.

    When you're confronted with this level of sense and sensibility, and then you've tried to deal with a microsoft "backup" file or something, you just have to be amazed at why people still pay Bill money for the garbage "productivity" suites he produces. OO is vastly superior IMO.

  2. keneida Said,

    June 29, 2005 @ 8:01 am

    OO crashed and does not want to recover a file from impress2. Unziping also does not work

  3. Nicholas Lee Said,

    July 3, 2005 @ 10:37 am

    If unzip can’t access the file, sounds like its corrupted completely. Its a good idea to keep backups of your docs if your are using OO2. That said, the later version 100+ are much better than anything pre-100. I know with v79 we were having several problems.

RSS feed for comments on this post