October 27th, 2005, 07:57 AM
OpenDocument: new XML file formats
With the new release 2.0 by default, OpenOffice.org loads and saves files in the OpenDocument file format.
The text below is a sort of cut&paste from the help guide... very useful!!
The OpenDocument file format is an XML file format standardized by OASIS (Organization for the Advancement of Structured Information Standards).
OpenDocument file format names
OpenOffice.org 2.0 uses the following file formats:
Older File Formats Prior to OpenOffice.org 2.0
NOTE: the HTML format is not an OpenDocument format
- OpenDocument Text (*.odt)
- OpenDocument Text Template (*.ott)
- OpenDocument Master Document (*.odm)
- HTML Document (*.html)
- HTML Document Template (*.oth)
- OpenDocument Spreadsheet (*.ods)
- OpenDocument Spreadsheet Template (*.ots)
- OpenDocument Drawing (*.odg)
- OpenDocument Drawing Template (*.otg)
- OpenDocument Presentation (*.odp)
- OpenDocument Presentation Template (*.otp)
- OpenDocument Formula (*.odf)
- OpenDocument Database (*.odb)
If you want to exchange documents with users that still use older versions of OpenOffice.org, save the document in the following formats:
These file name extensions help you to identify the different file types in a directory.
- OpenOffice.org Writer (*.sxw)
- OpenOffice.org Writer templates (*.stw)
- Master documents (*.sxg)
- OpenOffice.org Calc (*.sxc)
- OpenOffice.org Calc templates (*.stc)
- OpenOffice.org Impress (*.sxi)
- OpenOffice.org Impress templates (*.sti)
- OpenOffice.org Draw (*.sxd)
- OpenOffice.org Draw templates (*.std)
- OpenOffice.org Math (*.sxm)
If you unzip the XML files, you can use applications other than OpenOffice.org to edit the file contents.
If you want to define another file format as the default, choose Tools - Options - Load/Save - General to find alternative file formats for each OpenOffice.org document type.
XML file structure
Documents in OpenDocument file format are stored as compressed zip archives that contain XML files. To view these XML files, you can open the OpenDocument file with an unzip program. The following files and directories are contained within the OpenDocument files:
Additional files and folders can be contained in the packed file format.
- The text content of the document is located in content.xml.
By default, content.xml is stored without formatting elements like indentation or line breaks to minimize the time for saving and opening the document. On the Tools - Options - Load/Save - General tab page you can activate the use of indentations and line breaks by clearing the check box Size optimization for XML format (no pretty printing).
- The file meta.xml contains the meta information of the document, which you can enter under File - Properties.
If you save a document with a password, meta.xml will not be encrypted.
- The file settings.xml contains further information about the settings for this document.
In styles.xml, you find the styles applied to the document that can be seen in the Styles and Formatting window.
- The meta-inf/manifest.xml file describes the structure of the XML file.
Definition of the XML formats
The DTD (Document Type Description) files for the older formats can be found in $[officepath]\share\dtd.
The schema for the OpenDocument formats can be found on the www.oasis-open.org web site.
Note that the formats are subject to certain licenses. You can find notes on the licenses at the start of the DTD files.
More detailed information can be found on the OpenOffice.org website.
October 27th, 2005, 13:09 PM
Old and Cranky
Very informative. Thanks!