Re: extract text from ods TableCell using odfpy

2008-08-26 Thread frankentux
Ok. Sorted it out, but only after taking a round trip over xml.minidom. Here's the working code: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import TableRow,TableCell from odf.text import P doc = load(/tmp/match_data.ods) d =

extract text from ods TableCell using odfpy

2008-08-25 Thread frankentux
Hi there, I'm losing hair trying to figure out how I can actually get the text out of an existing .ods file. Currently I have: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import TableRow,TableCell from odf import text doc =