易截截图软件、单文件、免安装、纯绿色、仅160KB

Example Code of Using XML Parser in Symbian OS

antonypr | 14 April, 2007 00:05
A couple of weeks ago, I had a plan to write an article and example code of using XML parser in Symbian OS. It seems that another Forum Nokia Champion, Paul Todd had the same idea. He posted a nice article about XML parser in Symbian OS 9.x to Forum Nokia Blogs. It's good that I don't need to write the same article. :)
What I would like to share here is a complete example code of XML Parser in Symbian OS. The example code can be run on Symbian OS 8 and 9 phones, which means it can be compiled under S60 2nd Edition FP2/FP3 SDK or S60 3rd Edition SDK. I am planning to release the same example code for UIQ3 soon.
Click here to download my example code of XML parser
The example  basically parses an XML file, dataexample.xml, to the main window. The content will be displayed on CEikEdwin control (see picture below).
Note that the code is written as an example; thus it is designed to be as simple as possible. Do not use it in the production code!
One more thing, this is not the official example code from Forum Nokia. It is just my personal example code.
 S60, Symbian C++ |  Next |  Previous |  Comments (11) |  Trackbacks (0)
 Comments
Re: Example Code of Using XML Parser in Symbian OS
sandordornbush | 17/05/2007, 20:52
This is great starting point. However I need to parse a fairly large file (~8kB). Can you give any advice how to adapt this code to one where the whole file does not need to be loaded in one shot? I also posted this on the forums at:
http://discussion.forum.nokia.com/forum/showthread.php?t=108183
Re: Example Code of Using XML Parser in Symbian OS
jp4symbian | 13/06/2007, 15:26
This is an extremely useful example for parsing Xml specially since there is no such example on Forum.Nokia.
I have studied your example and have been able to successfully parse my Xml. But I also need to parse the tag attributes which is not implemented in your example.
I assume that attributes o


相关文档:

C++ XML解析之TinyXML篇

 标签:XML解析 TinyXML   [推送到技术圈]
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://panpan.blog.51cto.com/489034/104961
最近使用TinyXML进行C++ XML解析,感觉使用起来比较简单,很容易上手,本文给出一个使用TinyXML进行XML解 ......

XML, XSLT, XSD, XPATH, XSL

Xml, xslt, xsd, xpath描述一下
XML: Extensible Markup Language扩展标记语言,用来处理结构化文档。
XSLT: XSL Transformations。用来将一种XML转换成另外一种XML文档。也可以将XML转换成XHTML或者HTML在浏览器中显示。
XSD: XML Schemas Definition。用来定义XML文档的结构。XML Schema 是DTD(Document Type Definiti ......

JSP联系XML与数据库

  数据库应用系统包括数据库,数据库管理系统,数据库应用三大部分。
  世界上存在许多完全不同的客户平台,在不同平台间交换数据,需要保证数据的完整和服务的高效,数据格式的转换问题往往成为制约Web Service的瓶颈,采用XML作为数据交换的标准,可以使各个异构平台和各种格式的数据进行数据交换成为可能。
......

How to parse XML file using CParser class


Reviewer Approved    
The following example shows how to parse XML file using Symbian OS C++ class, CParser. CParser is basically a SAX (Simple API for XML)-based XML parser.
It uses an active object to read the XML file chunk by chunk (see CXmlHandler::StartParsingWithAoL( ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号