A software engineer living in Vancouver, Canada - http://www.antonypranata.com/
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 (10) |
Trackbacks (0)
jp4symbian | 13/06/2007, 15:26
jp4symbian | 14/06/2007, 11:01
namanrules | 06/02/2008, 08:56
Great post. Can you please also point us about how to parse wbxml document using plugins provided by framework.
Thanks
saimram | 27/02/2008, 10:42
Hi,
Thank you for provding an insight of how to parse the XML file..
But i have a doubt that is when i run the test with some other content in the example.xml, it is not displaying the content that is there in the file on to the screen, instead of that it is still showing the same old content of xml file which was there when we download the file, How can rectify this defect..
TESTSDK30 | 15/05/2008, 05:55
It seems the file is not available, could you please help to check?
cwyhs001 | 14/08/2008, 09:45
hi,
i can't download the code of XML parser. can you send me a copy of this code to me.
e-mail:cwyhs001@hotmail.com
thanks
dele2006 | 29/08/2008, 19:49
Hi,
I have downloaded and used your example.
I have an XML document with the following element.
venus
I can get the element name port using
aElement.LocalName().DesC().
The problem is that i want to extract the content to use in my application.
i.e port_name = venus ...
How do i extract the content name ? I am using a console application.
Thanks
sarah_r | 25/09/2008, 08:02
Hi,
I'm new to Symbian development. I would appreciate it,if you would let me know how to code a simple XML file. I would like to know the steps,how to go about creating an XML file.
Thanks & Regards
happyson | 26/03/2009, 10:21
I study the XML parser,but I haven't find the suitable resource, I need some help, Thanks.
Re: Example Code of Using XML Parser in Symbian OS
sandordornbush | 17/05/2007, 20:52
http://discussion.forum.nokia.com/forum/showthread.php?t=108183