
Chapter 2: Working With OpenOffice.org
OpenOffice.org XML file structure
The OpenOffice.org XML file formats follow the OASIS OpenDocument standard and are
compressed and packed using ZIP. Use an unpacking program, such as WinZip on
Windows® or unzip on *NIX, to unpack the contents of an XML file. The structure is similar
to the following illustration.
Archive: example.odt
Length Method Size Ratio Date Time CRC-32 Name
-------- --------- ------ ------- ------- ------- ------- --------
30 Stored 30 0.00% 15/05/05 15:25 3931a5e1 mimetype
4260 Stored 4260 0.00% 15/05/05 15:25 a 10af03b Pictures/ 100 010DA222DD884.gif
9022 Defl:N 2147 76.00% 15/05/05 15:25 cd8d5105 content.xml
2447 Defl:N 954 61.00% 15/05/05 15:25 08c57cab Basic/~wizard/Create.xml
1586 Defl:N 642 60.00% 15/05/05 15:25 55c931dc Basic/~wizard/Save.xml
389 Defl:N 223 43.00% 15/05/05 15:25 756d8953 Basic/~wizard/script-lb.xml
287 Defl:N 193 33.00% 15/05/05 15:25 528021b8 Basic/Standard/script-lb.xml
405 Defl:N 225 44.00% 15/05/05 15:25 95c3869e Basic/script-lc.xml
59152 Defl:N 5041 92.00% 15/05/05 15:25 e86699c4 st yles.xml
13 81 Stored 13 81 0.00% 15/05/05 15:25 70e3c0fc meta.xml
6674 Defl:N 0 0.00% 15/05/05 15:25 af1ecee5 Thumbnails/thumbnail.png
6841 Defl:N 1230 82.00% 15/05/05 15:25 0d922df6 settings.xml
1602 Defl:N 349 78.00% 15/05/05 15:25 8e61970e META-INF/manifest.xml
-------- ------- --- -------
87402 16 675 81.00% 12 files
Note: Under Windows®, output should be similar to the above.
• The text content of the document is located in content.xml. This file can be viewed with,
for example, a pure text editor.
By default, content.xml is stored without indents or any other type of formatting so
that the time needed for saving and opening is minimized. By unchecking Tools >
Options > Load/Save > General > Size optimization for XML format this procedure
can be changed so that the lines saved are structured in a more human readable format.
• meta.xml contains the meta information on the document, which is entered via File >
Properties.
In documents saved with security, meta.xml remains unsecured.
• settings.xml contains further information on settings for this document, for example
on the printer, on the recording of changes, the associated data sources and so on.
• st yles.xml retains the styles defined for the document. For example, these can be seen
in the Styles and Formatting window.
meta-inf/manifest.xml file describes the structure of the XML file.
OpenOffice.org User Guide for 2.x 25
Comentarios a estos manuales