OpenOffice file format

You're reading Mikko Saari's blog Life and opinions. This entry was written 04/21/2005, at 16:16.

If you want read more of my entries in the same topic, this entry belongs to the category of Geek stuff.

Previous entry: Nintendo DS
Next entry: Pieces of April and The Last Horror Movie

I thought I'd take a look in my OpenOffice files, having heard that the programs use a XML format for the files. I was met with binary rubbish, but I quickly noticed a familiar beginning: this is a Zip file.

Try unzipping an OpenOffice file and you'll find not just one but actually several XML files. For example, a chapter of my master's thesis includes five XML files: there's content, style, meta, settings and a manifest. Meta, for example, contains Dublin Core metadata and statistics like page, paragraph, word and character counts - useful, perhaps? Content has the contents of the file, neatly placed in >p< tags.

The same format is used for presentations and spreadsheets, even for vector art! Everything is described in detail: which element goes where. If you embed something in your document, there's a new object in the file with the same XML files for it. How clever!

There's a project dedicated to the OpenOffice file format. If you're interested, see OpenOffice.org XML File Format. It's certainly a very elegant and a modern approach to creating a file format.

Trackback Pings

TrackBack URL for this entry:
http://www.melankolia.net/mt/mt-tb.cgi/3216

Comments

Post a comment




Remember Me?