XML ファイル形式
ファイルを読み込むまたは保存するとき、LibreOffice は標準で OpenDocument ファイル形式を使用します。

The OpenDocument file format (ODF) is a standardized file format used by many software applications. You can find more information at the Wikipedia site: wikipedia.org/wiki/OpenDocument.
OpenDocument ファイル形式名
LibreOffice では以下のファイル形式を使用します。
ドキュメント書式 |
ファイル拡張子 |
ODF テキスト |
*.odt |
ODF テキストテンプレート |
*.ott |
ODF マスタードキュメント |
*.odm |
HTML ドキュメント |
*.html |
HTML ドキュメントテンプレート |
*.oth |
ODF 表計算ドキュメント |
*.ods |
ODF 表計算ドキュメントテンプレート |
*.ots |
ODF 描画 |
*.odg |
ODF 図形描画テンプレート |
*.otg |
ODF プレゼンテーション |
*.odp |
ODF プレゼンテーションテンプレート |
*.otp |
ODF 数式 |
*.odf |
ODF データベース |
*.odb |
LibreOffice 拡張機能 |
*.oxt |

HTML 形式は OpenDocument 形式ではありません。
ODF Chart は、スタンドアロングラフのファイル書式名です。 この書式で拡張子 *.odc のものは現在使用されていません。
OpenDocument フォーマットの発展
OpenDocument フォーマットは日々発展しています。
ODF のバージョン |
OASIS が標準として承認した日付 |
ソフトウェアがサポートする最初のバージョン |
ODF 1.0 |
2005年5月1日 |
OpenOffice.org 1.1.5 または StarOffice 7 |
ODF 1.1 |
2007年2月2日 |
OpenOffice.org 2.2 または StarOffice 8 Update 4 |
ODF 1.2 |
2011年09月30日 |
OpenOffice.org 3、StarOffice 9、Oracle Open Office |
ODF 1.2 (拡張) |
- |
OpenOffice.org 3.2 または StarOffice 9.2 |
現在のバージョンでは、ドキュメントを ODF 1.2 (デフォルト) で保存するか、ODF 1.0/1.1 (後方互換用) で保存するかを選択できます。
と選択し、ODF のバージョンを選択します。OpenOffice.org 1 や StarSuite 7 を使っているユーザーと文書を交換したい場合は、ファイルの種類リストボックスにその名前の付いたフィルターがあるので、それを使って文書を保存してください。

If you want to define another file format as the default, choose LibreOffice - PreferencesTools - Options - Load/Save - General to find alternative file formats for each LibreOffice document type.
XML ファイルの構成
OpenDocument ファイル形式のドキュメントは、XML ファイルが入った圧縮 ZIP アーカイブとして格納されます。このような XML ファイルを表示するには、zip 解凍プログラムを使用して OpenDocument ファイルを開きます。OpenDocument ファイルには、以下のファイルとディレクトリが入っています。
-
ドキュメントのテキストコンテンツは、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. The use of indentations and line breaks can be activated in the Expert configuration by setting the property /org.openoffice.Office.Common/Save/Document PrettyPrinting to true.
-
ファイル meta.xml には、メニュー ファイル → プロパティ で入力できるドキュメントのメタ情報が含まれています。
ドキュメントにパスワードを付けて保存した場合は、meta.xml は暗号化されません。
-
settings.xml には、該当ファイルに関するより詳細な設定情報が記載されています。
-
In styles.xml, you find the styles applied to the document that can be seen in the Styles window.
-
ファイル meta-inf/manifest.xml には、XML ファイルの構造が記述されています。
圧縮済みファイル形式には、追加のファイルおよびフォルダーを含めることができます。
XML 書式の定義
OpenDocument 形式用のスキーマは www.oasis-open.org の Web サイトにあります。