---
name: "odf2xml"
section: "1"
platform: "linux"
package: "python-odfpy"
version: "1.4.2-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/odf2xml"
---

# odf2xml(1)

." make the size of the head bigger **NAME** **odf2xml - Create OpenDocument XML file from OD? package**

**." make the size of the head bigger** **SYNOPSIS**

**odf2xml** \[-e\] \[-o *outputfile*\] \[*inputfile*\]

." make the size of the head bigger **DESCRIPTION**

**OpenDocument can be a complete office document in a single XML file. The script will take an OpenDocument and create an XML file This is mainly useful XML processors such as XSL transformation.**

**"Inputfile" is assumed to be an OpenDocument file. If there is no inputfile, the program will read from standard input.**

**." make the size of the head bigger** **OPTIONS**

**-e**

**Normally, images that are stored in the archive in the Pictures folder are ignored. Using the -e flag will** *embed* the images in the XML as base64.

\-o *outputfile*

If output file is not specified output will be to standard out.

." make the size of the head bigger **EXAMPLE**

```

odf2xml -o file.xml  testdocument.odt
```

**." make the size of the head bigger** **SEE ALSO**

[**xml2odf**(1)](/xml2odf/1.md)

." make the size of the head bigger **BUGS**

**Doesn´t handle external data -- images and such.**

**." make the size of the head bigger** **AUTHOR**

**Søren Roug**

Original author
