1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<meta>
<topic id="textshared0000000021xml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">XML File Formats</title>
<filename>/text/shared/00/00000021.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3154408"><bookmark_value>exporting; XML files</bookmark_value>
<bookmark_value>XML file formats</bookmark_value>
<bookmark_value>extensions; file formats</bookmark_value>
<bookmark_value>suffixes in file formats</bookmark_value>
<bookmark_value>document types in $[officename]</bookmark_value>
<bookmark_value>file formats; changing $[officename] defaults</bookmark_value>
<bookmark_value>defaults;file formats in $[officename]</bookmark_value>
<bookmark_value>file formats;OpenDocument/XML</bookmark_value>
<bookmark_value>OpenDocument file formats</bookmark_value>
<bookmark_value>ODF file formats</bookmark_value>
</bookmark><comment>mw changed "file formats;OpenDocument." entry and deleted "file formats;XML". MW made "document types;..." a one level entry</comment><comment>mw changed "defaults;..."</comment>
<bookmark xml-lang="en-US" branch="hid/SFX2_HID_DID_SAVE_PACKED_XML" id="bm_id3159242" localize="false"/>
<paragraph xml-lang="en-US" id="hd_id3154408" role="heading" level="1"><variable id="xmlformat"><link href="text/shared/00/00000021.xhp" name="XML File Formats">XML File Formats</link>
</variable></paragraph>
<paragraph xml-lang="en-US" id="par_id3148919" role="paragraph"><ahelp hid="HID_DID_SAVE_PACKED_XML">By default, $[officename] loads and saves files in the OpenDocument file format.</ahelp></paragraph>
<paragraph xml-lang="en-US" id="par_idN10725" role="note">The OpenDocument file format (ODF) is a standardized file format used by many software applications. You can find more information at the Wikipedia site: <link href="https://en.wikipedia.org/wiki/OpenDocument" name="English Wikipedia: OpenDocument">wikipedia.org/wiki/OpenDocument</link>.</paragraph>
<paragraph xml-lang="en-US" id="hd_id3156324" role="heading" level="2">OpenDocument file format names</paragraph>
<paragraph xml-lang="en-US" id="par_id3154926" role="paragraph">%PRODUCTNAME uses the following file formats:</paragraph>
<table id="tbl_id3109850">
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3157898" role="tablehead">Document format</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id3149549" role="tablehead">File extension</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10762" role="tablecontent">ODF Text </paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10767" role="tablecontent">*.odt</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1076D" role="tablecontent">ODF Text Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10772" role="tablecontent">*.ott</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10778" role="tablecontent">ODF Master Document</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1077D" role="tablecontent">*.odm</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10779" role="tablecontent">ODF Master Document Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1077E" role="tablecontent">*.otm</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10783" role="tablecontent">HTML Document</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10788" role="tablecontent">*.html</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1078E" role="tablecontent">HTML Document Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10793" role="tablecontent">*.oth</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10799" role="tablecontent">ODF Spreadsheet</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1079E" role="tablecontent">*.ods</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107A4" role="tablecontent">ODF Spreadsheet Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107A9" role="tablecontent">*.ots</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107AF" role="tablecontent">ODF Drawing</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107B4" role="tablecontent">*.odg</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107BA" role="tablecontent">ODF Drawing Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107BF" role="tablecontent">*.otg</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107C5" role="tablecontent">ODF Presentation</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107CA" role="tablecontent">*.odp</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107D0" role="tablecontent">ODF Presentation Template</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107D5" role="tablecontent">*.otp</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107DB" role="tablecontent">ODF Formula</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN107E0" role="tablecontent">*.odf</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN1085B" role="tablecontent">ODF Database</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_idN10860" role="tablecontent">*.odb</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id9756157" role="tablecontent">%PRODUCTNAME Extension</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id2089907" role="tablecontent">*.oxt</paragraph>
</tablecell>
</tablerow>
</table>
<paragraph xml-lang="en-US" id="par_idN1088F" role="note">The HTML format is not an OpenDocument format.</paragraph>
<paragraph xml-lang="en-US" id="par_id4818872" role="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.</paragraph>
<paragraph xml-lang="en-US" id="par_idN107E3" role="heading" level="2">Evolution of the OpenDocument format</paragraph>
<paragraph xml-lang="en-US" id="par_id0514200811525257" role="paragraph">The OpenDocument format evolves over time.</paragraph>
<table id="">
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0514200811565671" role="tablehead">ODF version</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530375" role="tablehead">Date of standard approval by OASIS<comment>intl. community wants intl iso standard date formats</comment></paragraph>
</tablecell>
<tablecell>
<paragraph role="tablehead" id="par_id0519200811530491" xml-lang="en-US">First supporting version of the software</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0514200811565662" role="tablecontent">ODF 1.0 </paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530487" role="tablecontent">2005-05-01</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530455" role="tablecontent">OpenOffice.org 1.1.5 or StarOffice 7</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0514200811565787" role="tablecontent">ODF 1.1 </paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530479" role="tablecontent">2007-02-02</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530467" role="tablecontent">OpenOffice.org 2.2 or StarOffice 8 Update 4</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0514200811565762" role="tablecontent">ODF 1.2</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id0519200811530440" role="tablecontent">2011-09-30</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablecontent" id="par_id0519200811530471" xml-lang="en-US">OpenOffice.org 3, StarOffice 9, Oracle Open Office</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381154" role="tablecontent">ODF 1.2 Extended (compatibility mode)</paragraph>
</tablecell>
<tablecell>
<paragraph localize="false" id="par_id100120091238113" role="tablecontent">—</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381175" role="tablecontent">LibreOffice 3.5</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381153" role="tablecontent">ODF 1.2 Extended</paragraph>
</tablecell>
<tablecell>
<paragraph localize="false" id="par_id100120091238112" role="tablecontent">—</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381174" role="tablecontent">OpenOffice.org 3.2 or StarOffice 9.2</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381155" role="tablecontent">ODF 1.3</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id100120091238114" role="tablecontent">TBD</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381176" role="tablecontent">LibreOffice 7.0</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381156" role="tablecontent">ODF 1.3 Extended</paragraph>
</tablecell>
<tablecell>
<paragraph localize="false" id="par_id100120091238115" role="tablecontent">—</paragraph>
</tablecell>
<tablecell>
<paragraph xml-lang="en-US" id="par_id1001200912381177" role="tablecontent">LibreOffice 7.0</paragraph>
</tablecell>
</tablerow>
</table>
<paragraph role="paragraph" id="par_id0514200811525591" xml-lang="en-US">In current versions, you can select to save your documents using ODF 1.2 or ODF 1.0/1.1 (for backward compatibility). Choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - Load/Save - General</menuitem> and select the ODF format version.</paragraph>
<paragraph role="tip" id="par_id3146907" xml-lang="en-US">If you want to define another file format as the default, choose <switchinline select="sys"><caseinline select="MAC"><menuitem>%PRODUCTNAME - Preferences</menuitem></caseinline><defaultinline><menuitem>Tools - Options</menuitem></defaultinline></switchinline><menuitem> - </menuitem><link href="text/shared/optionen/01010200.xhp" name="Load/Save - General"><menuitem>Load/Save - General</menuitem></link> to find alternative file formats for each $[officename] document type.</paragraph>
<paragraph role="heading" id="hd_id3150398" xml-lang="en-US" level="2">XML file structure</paragraph>
<paragraph role="paragraph" id="par_id3149649" xml-lang="en-US">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:</paragraph>
<list type="ordered">
<listitem>
<paragraph role="listitem" id="par_id3153178" xml-lang="en-US">The text content of the document is located in <emph>content.xml</emph>.</paragraph>
<paragraph role="listitem" id="par_id3154068" xml-lang="en-US">By default, <emph>content.xml</emph> 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 <link href="text/shared/optionen/expertconfig.xhp"><emph>Expert configuration</emph></link> by setting the property <emph>/org.openoffice.Office.Common/Save/Document PrettyPrinting</emph> to <emph>true</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3145152" xml-lang="en-US">The file <emph>meta.xml</emph> contains the meta information of the document, which you can enter under <emph>File - Properties</emph>.</paragraph>
<paragraph role="listitem" id="par_id3150740" xml-lang="en-US">If you save a document with a password, <emph>meta.xml</emph> will not be encrypted.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3150391" xml-lang="en-US">The file <emph>settings.xml</emph> contains further information about the settings for this document.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3150447" xml-lang="en-US">In <emph>styles.xml,</emph> you find the styles applied to the document that can be seen in the <emph>Styles</emph> window.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3153353" xml-lang="en-US">The <emph>meta-inf/manifest.xml</emph> file describes the structure of the XML file.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3153368" xml-lang="en-US">Additional files and folders can be contained in the packed file format.</paragraph>
<paragraph role="heading" id="hd_id3154299" xml-lang="en-US" level="2">Definition of the XML formats</paragraph>
<paragraph role="paragraph" id="par_idN10AAD" xml-lang="en-US">The schema for the OpenDocument formats can be found on the <link href="https://www.oasis-open.org/standards#opendocumentv1.2"><emph>www.oasis-open.org</emph></link> web site.</paragraph>
<section id="relatedtopics">
<embed href="text/shared/guide/doc_open.xhp#doc_open"/>
<embed href="text/shared/guide/doc_save.xhp#doc_save"/>
<embed href="text/shared/guide/ms_doctypes.xhp#ms_doctypes"/>
<paragraph role="paragraph" id="par_idN10AC5" xml-lang="en-US"><link href="text/shared/autopi/01130000.xhp">Document Converter Wizard</link></paragraph>
</section>
</body>
</helpdocument>
|