<!DOCTYPE html> <html lang="en-US"> <head> <base href="../../../../"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>XML File Formats</title> <link rel="shortcut icon" href="media/navigation/favicon.ico"> <link type="text/css" href="normalize.css" rel="Stylesheet"> <link type="text/css" href="default.css" rel="Stylesheet"> <link type="text/css" href="prism.css" rel="Stylesheet"> <script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="fuzzysort.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="en-US/langnames.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1"> </head> <body itemscope="true" itemtype="http://schema.org/TechArticle"> <div class="header-extrawurst"> <header><div class="logo-container"><a class="logo" href="en-US/text/shared/05/new_help.html"><div class="symbol"></div> <p>LibreOffice 6.4 Help</p></a></div></header><div class="modules"> <button type="button" data-a11y-toggle="modules-nav" id="modules" onclick="setupModules('', 'en-US');">Module</button><nav id="modules-nav"></nav> </div> </div> <aside class="rightside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1">Contents</label><div id="Contents" class="contents-treeview"></div></aside><aside class="leftside"><div id="Index"> <div class="index-label">Index 🔎︎ </div> <div id="Bookmarks"> <input id="search-bar" type="text" class="search" placeholder="Search in all modules"><nav class="index"></nav> </div> </div></aside><div id="DisplayArea" itemprop="articleBody"> <a name="bm_id3154408"></a><meta itemprop="keywords" content="exporting, XML files"> <meta itemprop="keywords" content="XML file formats"> <meta itemprop="keywords" content="extensions, file formats"> <meta itemprop="keywords" content="suffixes in file formats"> <meta itemprop="keywords" content="document types in LibreOffice"> <meta itemprop="keywords" content="file formats, changing LibreOffice defaults"> <meta itemprop="keywords" content="defaults,file formats in LibreOffice"> <meta itemprop="keywords" content="file formats,OpenDocument/XML"> <meta itemprop="keywords" content="OpenDocument file formats"> <meta itemprop="keywords" content="ODF file formats"> <a name="bm_id3159242"></a> <h1 itemprop="articleSection" id="hd_id3154408"> <a name="xmlformat"></a>XML File Formats </h1> <p id="par_id3148919" class="paragraph"><span class="avis">By default, LibreOffice loads and saves files in the OpenDocument file format.</span></p> <div class="note"> <div class="noteicon"><img src="media/icon-themes/res/helpimg/note.svg" alt="Note Icon " title="Note Icon " style="width:40px;height:40px;"></div> <div class="notetext"><p>The OpenDocument file format (ODF) is a standardized file format used by many software applications. You can find more information at the Wikipedia site: <a target="_blank" href="https://en.wikipedia.org/wiki/OpenDocument">wikipedia.org/wiki/OpenDocument</a>.</p></div> </div> <br> <h2 itemprop="articleSection" id="hd_id3156324">OpenDocument file format names</h2> <p id="par_id3154926" class="paragraph">LibreOffice uses the following file formats:</p> <table border="1" class="" cellpadding="0" cellspacing="0"> <tr> <td rowspan="" colspan="" class="tableheadcell"> <p id="par_id3157898" class="tableheadintable">Document format</p> </td> <td rowspan="" colspan="" class="tableheadcell"> <p id="par_id3149549" class="tableheadintable">File extension</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN10762" class="tablecontentintable">ODF Text </p> </td> <td rowspan="" colspan=""> <p id="par_idN10767" class="tablecontentintable">*.odt</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN1076D" class="tablecontentintable">ODF Text Template</p> </td> <td rowspan="" colspan=""> <p id="par_idN10772" class="tablecontentintable">*.ott</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN10778" class="tablecontentintable">ODF Master Document</p> </td> <td rowspan="" colspan=""> <p id="par_idN1077D" class="tablecontentintable">*.odm</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN10783" class="tablecontentintable">HTML Document</p> </td> <td rowspan="" colspan=""> <p id="par_idN10788" class="tablecontentintable">*.html</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN1078E" class="tablecontentintable">HTML Document Template</p> </td> <td rowspan="" colspan=""> <p id="par_idN10793" class="tablecontentintable">*.oth</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN10799" class="tablecontentintable">ODF Spreadsheet</p> </td> <td rowspan="" colspan=""> <p id="par_idN1079E" class="tablecontentintable">*.ods</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107A4" class="tablecontentintable">ODF Spreadsheet Template</p> </td> <td rowspan="" colspan=""> <p id="par_idN107A9" class="tablecontentintable">*.ots</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107AF" class="tablecontentintable">ODF Drawing</p> </td> <td rowspan="" colspan=""> <p id="par_idN107B4" class="tablecontentintable">*.odg</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107BA" class="tablecontentintable">ODF Drawing Template</p> </td> <td rowspan="" colspan=""> <p id="par_idN107BF" class="tablecontentintable">*.otg</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107C5" class="tablecontentintable">ODF Presentation</p> </td> <td rowspan="" colspan=""> <p id="par_idN107CA" class="tablecontentintable">*.odp</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107D0" class="tablecontentintable">ODF Presentation Template</p> </td> <td rowspan="" colspan=""> <p id="par_idN107D5" class="tablecontentintable">*.otp</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN107DB" class="tablecontentintable">ODF Formula</p> </td> <td rowspan="" colspan=""> <p id="par_idN107E0" class="tablecontentintable">*.odf</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_idN1085B" class="tablecontentintable">ODF Database</p> </td> <td rowspan="" colspan=""> <p id="par_idN10860" class="tablecontentintable">*.odb</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_id9756157" class="tablecontentintable">LibreOffice Extension</p> </td> <td rowspan="" colspan=""> <p id="par_id2089907" class="tablecontentintable">*.oxt</p> </td> </tr> </table> <br> <div class="note"> <div class="noteicon"><img src="media/icon-themes/res/helpimg/note.svg" alt="Note Icon " title="Note Icon " style="width:40px;height:40px;"></div> <div class="notetext"><p>The HTML format is not an OpenDocument format.</p></div> </div> <br> <p id="par_id4818872" class="paragraph">ODF Chart is the name of the file format for stand alone charts. This format with the extension *.odc is currently not in use.</p> <h2 itemprop="articleSection" id="par_idN107E3">Evolution of the OpenDocument format</h2> <p id="par_id0514200811525257" class="paragraph">The OpenDocument format evolves over time.</p> <table border="1" class="" cellpadding="0" cellspacing="0"> <tr> <td rowspan="" colspan="" class="tableheadcell"> <p id="par_id0514200811565671" class="tableheadintable">ODF version</p> </td> <td rowspan="" colspan="" class="tableheadcell"> <p id="par_id0519200811530375" class="tableheadintable">Date of standard approval by OASIS</p> </td> <td rowspan="" colspan="" class="tableheadcell"> <p id="par_id0519200811530491" class="tableheadintable">First supporting version of the software</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_id0514200811565662" class="tablecontentintable">ODF 1.0 </p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530487" class="tablecontentintable">2005-05-01</p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530455" class="tablecontentintable">OpenOffice.org 1.1.5 or StarOffice 7</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_id0514200811565787" class="tablecontentintable">ODF 1.1 </p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530479" class="tablecontentintable">2007-02-02</p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530467" class="tablecontentintable">OpenOffice.org 2.2 or StarOffice 8 Update 4</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_id0514200811565762" class="tablecontentintable">ODF 1.2</p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530440" class="tablecontentintable">2011-09-30</p> </td> <td rowspan="" colspan=""> <p id="par_id0519200811530471" class="tablecontentintable">OpenOffice.org 3, StarOffice 9, Oracle Open Office</p> </td> </tr> <tr> <td rowspan="" colspan=""> <p id="par_id1001200912381153" class="tablecontentintable">ODF 1.2 (Extended)</p> </td> <td rowspan="" colspan=""> <p id="par_id100120091238112" class="tablecontentintable">-</p> </td> <td rowspan="" colspan=""> <p id="par_id1001200912381174" class="tablecontentintable">OpenOffice.org 3.2 or StarOffice 9.2</p> </td> </tr> </table> <br> <p id="par_id0514200811525591" class="paragraph">In current versions, you can select to save your documents using ODF 1.2 (default) or ODF 1.0/1.1 (for backward compatibility). Choose <span id="swlnsysidm148" class="switchinline"><span hidden="true" id="MACidm149" class="MAC"><span class="menuitem">LibreOffice - Preferences</span></span><span hidden="true" id="defaultidm151"><span class="menuitem">Tools - Options</span></span></span><span class="menuitem"> - Load/Save - General</span> and select the ODF format version.</p> <p id="par_idN107E9" class="paragraph">If you want to exchange documents with users that still use OpenOffice.org 1 or StarOffice 7, save the document using the respectively named filter in the <span class="emph">File type</span> listbox.</p> <div class="tip"> <div class="noteicon"><img src="media/icon-themes/res/helpimg/tip.svg" alt="Tip Icon " title="Tip Icon " style="width:40px;height:40px;"></div> <div class="notetext"><p>If you want to define another file format as the default, choose <span id="swlnsysidm157" class="switchinline"><span hidden="true" id="MACidm158" class="MAC"><span class="menuitem">LibreOffice - Preferences</span></span><span hidden="true" id="defaultidm160"><span class="menuitem">Tools - Options</span></span></span><span class="menuitem"> - </span><a target="_top" href="en-US/text/shared/optionen/01010200.html"><span class="menuitem">Load/Save - General</span></a> to find alternative file formats for each LibreOffice document type.</p></div> </div> <br> <h2 itemprop="articleSection" id="hd_id3150398">XML file structure</h2> <p id="par_id3149649" class="paragraph">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:</p> <ol> <li> <p id="par_id3153178" class="listitem">The text content of the document is located in <span class="emph">content.xml</span>.</p> <p id="par_id3154068" class="listitem">By default, <span class="emph">content.xml</span> is stored without formatting elements like indentation or line breaks to minimize the time for saving and opening the document. The use of indentations and line breaks can be activated in the <a target="_top" href="en-US/text/shared/optionen/expertconfig.html"><span class="emph">Expert configuration</span></a> by setting the property <span class="emph">/org.openoffice.Office.Common/Save/Document PrettyPrinting</span> to <span class="emph">true</span>.</p> </li> <li> <p id="par_id3145152" class="listitem">The file <span class="emph">meta.xml</span> contains the meta information of the document, which you can enter under <span class="emph">File - Properties</span>.</p> <p id="par_id3150740" class="listitem">If you save a document with a password, <span class="emph">meta.xml</span> will not be encrypted.</p> </li> <li> <p id="par_id3150391" class="listitem">The file <span class="emph">settings.xml</span> contains further information about the settings for this document.</p> </li> <li> <p id="par_id3150447" class="listitem">In <span class="emph">styles.xml,</span> you find the styles applied to the document that can be seen in the <span class="emph">Styles</span> window.</p> </li> <li> <p id="par_id3153353" class="listitem">The <span class="emph">meta-inf/manifest.xml</span> file describes the structure of the XML file.</p> </li> </ol> <p id="par_id3153368" class="paragraph">Additional files and folders can be contained in the packed file format.</p> <h2 itemprop="articleSection" id="hd_id3154299">Definition of the XML formats</h2> <p id="par_idN10AAD" class="paragraph">The schema for the OpenDocument formats can be found on the <a target="_blank" href="https://www.oasis-open.org/standards#opendocumentv1.2"><span class="emph">www.oasis-open.org</span></a> web site.</p> <a name="relatedtopics"></a><div class="relatedtopics"> <p class="related" itemprop="mentions"><a name="related"></a><span class="emph">Related Topics</span> </p> <div class="relatedbody" itemprop="mentions"> <div class="embedded"><p class="embedded"><a name="doc_open"></a><a target="_top" href="en-US/text/shared/guide/doc_open.html">Opening Documents</a></p></div> <div class="embedded"><p class="embedded"><a name="doc_save"></a><a target="_top" href="en-US/text/shared/guide/doc_save.html">Saving Documents</a> </p></div> <div class="embedded"><p class="embedded"><a name="ms_doctypes"></a><a target="_top" href="en-US/text/shared/guide/ms_doctypes.html">Changing the Association of Microsoft Office Document Types</a> </p></div> <p id="par_idN10AC5" class="paragraph"><a target="_top" href="en-US/text/shared/autopi/01130000.html">Document Converter Wizard</a></p> </div> </div> </div> <div class="search-frame"></div> <div class="donation-frame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p>This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/shared/00/00000021.xhp" target="_blank">/text/shared/00/00000021.xhp</a></p> <p>Title is: XML File Formats</p> <p id="bm_module"></p> <p id="bm_system"></p> <p id="bm_HID"></p> </div></footer> </body> </html>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
00000001.html | File | 17.63 KB | 0644 |
|
00000002.html | File | 16.69 KB | 0644 |
|
00000003.html | File | 6.54 KB | 0644 |
|
00000004.html | File | 11.68 KB | 0644 |
|
00000005.html | File | 25.41 KB | 0644 |
|
00000007.html | File | 3.63 KB | 0644 |
|
00000010.html | File | 6.95 KB | 0644 |
|
00000011.html | File | 3.62 KB | 0644 |
|
00000020.html | File | 20.65 KB | 0644 |
|
00000021.html | File | 16.61 KB | 0644 |
|
00000099.html | File | 4.31 KB | 0644 |
|
00000200.html | File | 6.61 KB | 0644 |
|
00000206.html | File | 3.25 KB | 0644 |
|
00000207.html | File | 6.07 KB | 0644 |
|
00000208.html | File | 14.78 KB | 0644 |
|
00000215.html | File | 5.14 KB | 0644 |
|
00000401.html | File | 23.98 KB | 0644 |
|
00000403.html | File | 7.03 KB | 0644 |
|
00000404.html | File | 11.17 KB | 0644 |
|
00000406.html | File | 40.79 KB | 0644 |
|
00000407.html | File | 2.8 KB | 0644 |
|
00000408.html | File | 2.94 KB | 0644 |
|
00000409.html | File | 3.38 KB | 0644 |
|
00000450.html | File | 9.56 KB | 0644 |
|
00040500.html | File | 20.87 KB | 0644 |
|
00040501.html | File | 30.33 KB | 0644 |
|
00040502.html | File | 30.94 KB | 0644 |
|
00040503.html | File | 7.04 KB | 0644 |
|
01000000.html | File | 3.55 KB | 0644 |
|
01010000.html | File | 3.55 KB | 0644 |
|
01020000.html | File | 3.59 KB | 0644 |
|
01050000.html | File | 3.25 KB | 0644 |
|
edit_menu.html | File | 13.24 KB | 0644 |
|
icon_alt.html | File | 2.94 KB | 0644 |
|