From: James Britt Date: 2009-06-17T02:48:17+09:00 Subject: Re: converting openoffice documents to XML Tim Hunter wrote: > On Jun 16, 2:56 am, Anandh Kumar wrote: >> Hi everybody >> >> I've to parse the open office documents and upload it to the >> database in ruby on rails and in linux platform. I've not found any gem >> to accomplish that. Now i got a idea of converting the open office >> documents to XML format and then to parse the XML content to finish up >> with my task. >> >> Is it possible? > > An OpenOffice document is a package of XML files zipped into a single > file. Change the .odt extension to .zip, unzip it, and you'll see. > Once upon a time I wrote a lib to manipulate OOo docs. I ended up not using it as much as I expected, and eventually abandoned it. The OOo doc format has since changed, so it's largely useless, but may offer some ideas on how to manipulate OOo docs in general.' http://ooo4r.rubyforge.org/ I also wrote about my OOo + Ruby experience for Linux Journal http://www.linuxjournal.com/article/7236 -- James Britt www.jamesbritt.com - Playing with Better Toys www.ruby-doc.org - Ruby Help & Documentation www.rubystuff.com - The Ruby Store for Ruby Stuff www.neurogami.com - Smart application development