Read-only archive of the All About Symbian forum (2001–2013) · About this archive

XML parsing

0 replies · 1,665 views · Started 24 July 2008

Hi All,
I am trying to fetch the location and service providers value for a particular number from the xml code below

<?xml version="1.0" ?> 
<knowcarrier>
<mobile>
<number>98450,98451,98452</number>
<serviceprovider>AIRTEL</serviceprovider >
<location>Karnataka</location>
</mobile>
<mobile>
<number>94450,94451,94452</number>
<serviceprovider>BSNL</serviceprovider >
<location>Karnataka</location>
</mobile>
<mobile>
<number>98440,98441,98442</number>
<serviceprovider>SPICE</serviceprovider >
<location>Karnataka</location>
</mobile>

Eg: if i am searching for the no 98451, and on successfull search, it should display only "AIRTEL","Karnataka". but i am getting all the data in the file.
can anyone plz help me. As i dont have much experience in symbian.

Thanks in advance
Veekay