Categories: S60 | Python | How To | XML
This page was last modified 20:12, 14 October 2007.
How to use XML
From Forum Nokia Wiki
There are many xml libraries in python world but on S60 there are few implementations of them.
pyexpat
Expat is an XML parser library written in C. It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags). Pyexpat is part of PyXML and is a wrapper of the expat parser. It supports DTD validation.
For parsing xml with python you need pyexpat for S60.
pyexpat has been ported to python S60.
XML Parser implementation based on REX
Robert Cameron has a set of regular expressions that can be used - very easily and effectively - to parse XML content.
The XmlParser module can be used to parse an XML file or to parse an XML string.
cElementTree
The cElementTree module is a C implementation of the ElementTree API, optimized for fast parsing and low memory use. On typical documents, cElementTree is 15-20 times faster than the Python version of ElementTree, and uses 2-5 times less memory. On modern hardware, that means that documents in the 50-100 megabyte range can be manipulated in memory, and that documents in the 0-1 megabyte range load in zero time (0.0 seconds). This allows you to drastically simplify many kinds of XML applications. cElementTree has been adapted to Python S60 by Simo Salminen.
links : Python and XML
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can we parse an XML file and store the result in some format | saimram | General Symbian C++ | 8 | 2008-02-29 12:32 |
| Symbian Xml Parser | ManOfSteel | General Symbian C++ | 1 | 2004-09-17 07:36 |
| Where can i find the detail of Series40 theme | 1073X | Themes/Carbide.ui | 4 | 2008-06-25 19:15 |
| OTA files, S40, S60, S80, same or individual? | addeeriksson | Smart Messaging | 1 | 2006-04-12 06:46 |
| How to read a User Agent profile | liveonair | General Discussion | 3 | 2008-02-24 15:46 |
