[Qgis-user] Re: new xytools plugin: now open and save simple Excel files

gene martin.laloux at gmail.com
Fri Dec 16 07:19:40 PST 2011


No, there is no need to PyUno and OpenOffice installed. Odt files are simple
zipped files. The data are contained in a file named "content.xml" in the
odt archive

Then : 

import zipfile
from xml.etree import ElementTree as ET
z = zipfile.ZipFile('mycalc.odt')
file= z.read('content.xml') 
data = ET.parse(file)
rows =
data.findall('.//{urn:oasis:names:tc:opendocument:xmlns:table:1.0}table-row')
etc.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/new-xytools-plugin-now-open-and-save-simple-Excel-files-tp7098439p7101030.html
Sent from the qgis-user mailing list archive at Nabble.com.



More information about the Qgis-user mailing list