You Are Here:

Community: Wiki

This page was last modified on 14 October 2007, at 20:12.

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 Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
User Rating: qfnZuserE5FratingQNx1E2E0000X