易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

添加头文件中的xml,script,css等内容方法

function   $import(path,type,title,idname){  
          var   s,i;  
          if(type=="js"){  
         &nb ......

用CMarkUp类解析XML文件

解析:
 CMarkup xml;
 CString strChanText, strChanType;
 xml.Load("MyXml.xml");
 xml.ResetMainPos();
 if (!Chan.FindElem("TreeOrg"))
 {
      return;
 }
 if (xml.IntoElem())
 {
      xml.FindEle ......

为什么使用 XML?


Web 使我们能够与任何地方的任何人通讯。广泛接受的标准(这对完全使用 Web 的潜力是至关重要的)允许 Web 在多种交互操作的技术层上通讯。一个重要层是可视化显示和用户界面,例如 HTML、GIF 和 JScript(TM) 之类的现有标准。这些标准允许创建一次页面,并且在不同时间向众多接收者显示。
尽管可视化和用户界面标准是必 ......

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( ......

Use the XML Parser in OS 9.x


Paul.Todd | 09 April, 2007 15:24
I have noticed a couple of people seem to be having problems with using the XML parser in Symbian and there are no examples outside of the devkit. The parser I will be talking about is the xml one, not the one SOAP engine as the SOAP one is Nokia specific.
The ke ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号