Unravel the OpenOffice File Format
OpenOffice provides a suite of applications whose native file format consists of a set of XML files, compressed into a ZIP archive. This hack explores the basics of the OpenOffice file format.
OpenOffice (http://www.openoffice.org) is a suite of free, multiplatform, open source applications for the desktop, sponsored by Sun Microsystems (http://wwws.sun.com/software/star/openoffice/). The suite includes text-editor, spreadsheet, drawing, and presentation applications, each of which uses an XML-based file format. Table 4-2 lists the OpenOffice applications and their file extensions.
Each file is saved as a collection of XML documents and stored in a ZIP archive. (You can also save documents in other formats, such as text, Rich Text Format, or HTML. You can also export a document as PDF.) The specification of the OpenOffice XML file format is being maintained by an OASIS technical committee (http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office).
Table 4-2. OpenOffice applications and file extensions
|
OpenOffice application |
File extension |
|---|---|
|
Calc spreadsheet application |
*.sxc |
|
Calc templates |
*.stc |
|
Draw graphics application |
*.sxd |
|
Draw templates |
*.std |
|
Impress presentation application |
*.sxi |
|
Impress templates |
*.sti |
|
Math application |
*.sxm |
|
Master files |
*.sxg |
|
Writer text editor application |
*.svw |
|
Writer templates |
*.stw |
In the OpenOffice subdirectory of the book’s file archive is a small file, foaf.sxw , a snippet taken from the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access