Following are some of the frequently asked questions regarding XML parsing in S60 3rd edition.
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.
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
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.
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.
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.
No related wiki articles found