Welcome to Teemu’s Blog

Picture of me.

Hi, my name is Teemu Harju. I'm a 27-year-old engineer from Espoo, Finland and this is site is my contribution to the world wide web. I'll write here about all kinds of stuff that interests me. Python coding is my passion. I'm also interested in different kinds of web technologies.

Solution to XML-RPC problem

I think I’ve now figured out the problem of parsing Flickr’s XML-RPC responses using Python for Series 60. Mike from Flickr mailing list was kind enough to point me to use ElementTree to parse the xml responses in handy tree structure to use in the application. All I need to load to my phone is xmllib which is already required by xmlrpclib and therefore installed already. To use ElementTree I need to load ElementTree module. Then because the Python release doesn’t include any ready parsers yet (I haven’t yet tested the pyexpat) I also need to load SimpleXMLTreeBuilder module . This should work, although I haven’t had yet time to test it on the phone, but since these modules have no other dependencies, they should work fine.

Leave a Reply