XML File Formats /text/shared/00/00000021.xhp Sun Microsystems, Inc. FPE: Removed screenshot dedr: reviewed UFI: added spec "File Format Names for New Oasis Open Office Format" YJ: reviewed exporting; XML files file formats; XML XML file formats extensions; file formats suffixes in file formats document types;XML file formats; changing defaults default file formats file formats;OpenDocument OpenDocument file formats mw deleted "filters;...", changed one "file formats;..." entry and deleted another XML File Formats By default, $[officename] loads and saves files in the OpenDocument file format. The OpenDocument file format is an XML file format standardized by OASIS (Organization for the Advancement of Structured Information Standards). OpenDocument file format names %PRODUCTNAME %PRODUCTVERSION uses the following file formats: Document format File extension 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 %PRODUCTNAME Extensions *.oxt
The HTML format is not an OpenDocument format. Older File Formats Prior to %PRODUCTNAME %PRODUCTVERSION If you want to exchange documents with users that still use older versions of %PRODUCTNAME, save the document in the following formats: Application File extension $[officename] Writer before %PRODUCTNAME %PRODUCTVERSION *.sxw $[officename] Writer templates before %PRODUCTNAME %PRODUCTVERSION *.stw Master documents before %PRODUCTNAME %PRODUCTVERSION *.sxg $[officename] Calc before %PRODUCTNAME %PRODUCTVERSION *.sxc $[officename] Calc templates before %PRODUCTNAME %PRODUCTVERSION *.stc $[officename] Impress before %PRODUCTNAME %PRODUCTVERSION *.sxi $[officename] Impress templates before %PRODUCTNAME %PRODUCTVERSION *.sti $[officename] Draw before %PRODUCTNAME %PRODUCTVERSION *.sxd $[officename] Draw templates before %PRODUCTNAME %PRODUCTVERSION *.std $[officename] Math before %PRODUCTNAME %PRODUCTVERSION *.sxm
If you want to define another file format as the default, choose Tools - Options - Load/Save - General to find alternative file formats for each $[officename] 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: 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. Additional files and folders can be contained in the packed file format. Definition of the XML formats The schema for the OpenDocument formats can be found on the www.oasis-open.org web site. The DTD (Document Type Description) files for the older formats can be found in {installation_path/}share/dtd {installation_path\}share\dtd. 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.
Document Converter Wizard