cElementTree in PyS60
<!-- You know you love it -->
Here's some info to help you get your XML on in PyS60.
Install Simo's build of cElementTree. (you can read more stuff about the core package if you like)
Its a great package which allows you to rip through some XML like:
>>> import cElementTree as et
>>> e=et.fromstring("<hello>world</hello>")
>>> e.tag, e.text
('hello', 'world')
The downside is it will probably take about 1.5 MB to load the package. Well worth the cost.
Simo offers two packages, one for 2nd edition and one for 3rd edition. The 2nd edition ships with both a phone and an emulator binary.
To install the Emulator binary, you should note:
The source package contains elementtree package (pure python code) in elementtree directory. Move that directory to C:\Symbian\8.0a\S60_2nd_FP2\epoc32\release\wins\udeb\z\system\Libs\elementtree.
This set of pure python code is bundled in the SIS file, so you wont have to worry about this step when you are using cElementTree on the phone.
You can read this and more on the original thread from the Nokia Forum.
© Copyright David Ayman Shamma: ayman shamma•gmail com