Serge Orlov wrote: > Anton Vredegoor wrote: >> In fact there are a lot of printable things that haven't got a text >> attribute, for example some items with tag (xxxx)s. > > In my sample file I see <text:s text:c="2"/>, is that you're talking > about? Since my file is small I can say for sure this tag represents > two space characters.
Or for example in firefox: <text:s/> in Amsterdam <text:s/> So, probably yes. If it doesn't have a text attribrute if you iterate over it using OOopy for example: o = OOoPy (infile = fname) c = o.read ('content.xml') for x in c.getiterator(): if x.text: Then we know for sure you have recreated my other problem. Anton -- http://mail.python.org/mailman/listinfo/python-list