Linked by Thom Holwerda on Mon 21st Aug 2006 19:02 UTC, submitted by Mark Daher
Thread beginning with comment 154686
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.





Member since:
2006-01-19
It is absolutely easy to write an application which allows you to create, read or modify an ODF file.
) which quickly searches through an ODF file.
The ODF file itself is just a zipped directory structure. In windows you can rename myDocu.odt to myDocu.zip and unzip the file with WinZip or any other zip tool you want. I once did that just for fun, it really works!
What you get is a directory structure where all the things are stored in ASCII (or unicode, I don't know) XML. Embedded things like pictures are stored as png or jpeg files in subdirectories.
If you find out what which XML tag means and does (and this is publicly documented) you can write your own ODF modifying/creating/reading application. Free languages like python might even already provide toolchains for manipulating ODF files (although I know nothing definitively).
If you want to grep ODF documents in Linux you will likely find a way to write a simple shell script (named odfgrep