odf2xml(1) 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.



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


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


Søren Roug

Original author