DOKK / manpages / debian 10 / python-odf-tools / odf2xml.1.en
ODF2XML(1) User commands ODF2XML(1)

odf2xml - Create OpenDocument XML file from OD? package

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

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.

-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.

odf2xml -o file.xml  testdocument.odt

xml2odf(1)

Doesn't handle external data -- images and such.

Søren Roug

Original author
06/05/2018 odfpy