The OpenDocument XML.org web site is not longer accepting new posts. Information on this page is preserved for legacy purposes only. For current information on ODF, please see the OASIS OpenDocument Technical Committee.
Extract and Parse ODF Files with Python
This Linux Journal article by Kamran Husain highlights the basic structure of ODF files, and some internals of the underlying XML files and shows how to use Python to read the contents to perform a simple search for keywords. The code also can be the basis for more advanced operations. In the spirit of openness, open-source software is used to read the ODF files, which in this case are Python and the OpenOffice.org package.