XML File Formats/text/shared/00/00000021.xhpSun Microsystems, Inc.FPE: Removed screenshot
dedr: reviewed
UFI: added spec "File Format Names for New Oasis Open Office Format"
YJ: reviewedexporting; XML filesfile formats; XMLXML file formatsextensions; file formatssuffixes in file formatsdocument types;XMLfile formats; changing defaultsdefault file formatsfile formats;OpenDocumentOpenDocument file formatsmw deleted "filters;...", changed one "file formats;..." entry and deleted anotherXML 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:
The HTML format is not an OpenDocument format.Older File Formats Prior to %PRODUCTNAME %PRODUCTVERSIONIf you want to exchange documents with users that still use older versions of %PRODUCTNAME, save the document in the following formats:
ApplicationFile extension$[officename] Writer before %PRODUCTNAME %PRODUCTVERSION*.sxw$[officename] Writer templates before %PRODUCTNAME %PRODUCTVERSION*.stwMaster 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 structureDocuments 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 formatsThe 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