views:

184

answers:

1

I try to edit ODT-documents programmaticly in PHP. In fact I just want to do some text replacement and adding new rows in a table.

I know that a normal ODF document is an archive containing XML-files. But before I reinvent the wheel: is there any library which does most of the tasks? Or should I just parse the XML-file in a DOM-parser and modify it?

+3  A: 

http://en.wikipedia.org/wiki/OpenDocument_software lists several PHP tools for working with ODT.

I haven't used any of these, I'm just giving you the list. You'll have to evaluate them to see if they have the specific features you need.

Bill Karwin
The last one looks very promising (it's always the last in a list that is the most interesting). According to the tutorial text-replacement and row-adding is possible.
neo