Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 20:09, 15 December 2007.

XML parsing in Symbian OS v9.x

From Forum Nokia Wiki

Following are some of the frequently asked questions regarding XML parsing in S60 3rd edition.

Contents

What is the recommended way to parse XML files? Which API should we use?

This depends on the type of our xml document and the parsing methodology that we want to use. DOM is best used for applications where the document elements have to be accessed and manipulated in an unpredictable sequence and repeatedly. If the applications involves a sequential or one-time selective read or write per processed document, DOM presents a considerable overhead. The sequential SAX model is advantageous in such a case in terms of speed and memory consumption. S60 SDK provides API's which will help for both SAX and DOM based parsing.

Is it possible to get proper documentation about Symbian's XML Framework and CParser?

The usage of Cparser can be found in the Forum Nokia Technical library. Please go to the link http://www.forum.nokia.com/Technical_Library/FNTL/fn_technical_library.htm and search for CParser or http://wiki.forum.nokia.com/index.php/TSS000286_-_Using_the_XML_parser_in_S60

Does Symbian's XML Framework (CParser) provide a DOM interface? Or only SAX?

Cparser is part of the Symbian XML framework which can be used for SAX model. CsenXmlReader, CSenBaseFragment, CSenDomFragment are part of the XML extensions provided by S60. CSenXMLReader internally uses Cparser.

What is the main difference between CParser and the S60 parser (CSenXMLReader)? Does the S60 API support DOM parsing?

CSenXmlReader & CSenBaseFragment can also be used for SAX model. CSenXmlReader & CSenDomFragment can be used for DOM parsing. For more details on how to do the DOM parsing please refer to the S60 3.0 MR SDK or S60 3.0 FP1 SDK which provides some example code. In the S60 FP1 SDK go to API Reference\C++API Reference\S60 Platform services\Web Based Services\ Web Services\Usage\XML Parsing and API Reference\C++API Reference\S60 Platform services\Web Based Services\ Web Services\XML Extensions.

Are there any changes in this area in 3rd Edition FP1 compared to 3rd Edition?

S60 3.0 MR SDK and S60 3.0 FP1 SDK support the S60 XML extensions which are not available in S60 3.0 SDK. Also there are some additional support classes and methods in Symbian XML Framework.

See Also

Related Discussions
Thread Thread Starter Forum Replies Last Post
RE;quiz Saffy Mobile Java General 2 2006-11-03 06:44
syexpat xml parser Revisited . pravin.swami General Symbian C++ 10 2007-05-03 05:51
Newbie needs help. oskartor General Symbian C++ 6 2007-10-20 05:41
Creating Forms in C++ with 9500 eabidi Symbian User Interface 6 2004-11-15 08:15
is there any xml support in symbian c++ jha_pankaj18 General Symbian C++ 1 2004-03-19 08:05
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX