Results 1 to 2 of 2

Thread: OpenDocument: new XML file formats

  1. #1
    Bronze Member carloc's Avatar
    Join Date
    Sep 2004

    Post OpenDocument: new XML file formats

    With the new release 2.0 by default, 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 2.0 uses the following file formats:
    • 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)
    NOTE: the HTML format is not an OpenDocument format
    Older File Formats Prior to 2.0
    If you want to exchange documents with users that still use older versions of, save the document in the following formats:
    • Writer (*.sxw)
    • Writer templates (*.stw)
    • Master documents (*.sxg)
    • Calc (*.sxc)
    • Calc templates (*.stc)
    • Impress (*.sxi)
    • Impress templates (*.sti)
    • Draw (*.sxd)
    • Draw templates (*.std)
    • Math (*.sxm)
    These file name extensions help you to identify the different file types in a directory.
    If you unzip the XML files, you can use applications other than 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 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 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 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 website.

  2. #2
    Old and Cranky Super Moderator rik's Avatar
    Join Date
    Aug 2003
    Watching Your every move...
    Very informative. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts