Anyone know what to do with this xml file

hi,
I have one problem regarding xml file.......i know xml parsing but now xml format is different so i can't manage properly......if u have any idea then pls tell me what to do.....
<getFriends generator="zend" version="1.0">
<key_0>
<firstName>Alain</firstName>
<lastName>Nicod</lastName>
<cities>
<key_0>
<id>0</id>
<city>St Prex</city>
</key_0>
<key_1>
<id>1</id>
<city>Cochin</city>
</key_1>
<key_2>
<id>2</id>
<city>surat</city>
</key_2>
<key_3>
<id>3</id>
<city>amreli</city>
</key_3>
</cities>
</key_0>
</getFriends>
I have put cities on didStartElement then its not giving perfet data so
what should i do now.........any idea about........
Thanks,
Haresh.

It is both easier and more complicated than that. I really can't give you any "sample code" because it isn't a coding issue. It is more of a data representation issue. XML is both a "simple" markup language and a complex data representation language. You need to read up a bit on XML to see what you can do with it. Come up with a test data set that is formatted the way that make sense to you. Or, maybe create a test data structure in your code and save that to XML to see how the native representation looks.
At that point, you will know what your input looks like and you will know what your output should look like. You just need a way to get from A -> B. For XML, the quickest way to do that is through XSLT.

Similar Messages

  • When trying to connect to app store i get message connection refused anyone know what's up with this?

    when trying to connect to the app store i get a message "connection refused" anyone know what's up with this?

    I'm new to this what other posts?

  • I am having trouble connecting to my network all of a sudden. It is not an issue with the service/router. I keep getting kicked off and getting a ! in my airport... anyone know what's up with this?

    I am having trouble connecting to my network all of a sudden. I am able to connect to other networks but not my own. It is not an issue with the service/router because other devices connect fine. I keep getting kicked off and getting a ! in my airport. Last time it happended I called apple and the suggested I wipe my HD and reinstall everything. I did and it did not work. One day I turned my laptop on and it connected no problem. Now it has kicked me off again. I tried resetting my IP address but that does not work either! Has anyone had this problem?

    Try this:
    Apple menu / System Preferences / Network.
    Click Location: and select Edit Locations..
    Click + (plus sign), and enter a name for the new location - anything will do.
    Apply this.

  • Gud evening i have got an iphone 5 which is running on ios 7.0.4 as i m trying to put r sim with vodafone india it shows sim failure does anyone know what to do with this problem occuring again and again

    k

    Has the phone been officially unlocked by the carrier? Check this article:
    iPhone: About unlocking
    If yes and your SIM is not recognized, see this article for more information.

  • I have this question mark (?) in the upper left corner of my Finder windows. Anyone know what's up with that, what it might portend, and how to get rid of it?

    I have this question mark (?) in the upper left corner of my Finder windows. Anyone know what's up with that, what it might portend, and how to get rid of it?

    Are you sure you have a PowerMac? They can't run Mac OS 10.6.8. Maybe a Mac Pro instead?
    Can you post a screen shot of that portion of the screeen for us to review? Does the question mark replace the Apple that's at the left end of the menubar?

  • I just hooked up my Canon MP830 printer/scanner/fax to my MAC and can print but can't scan.  Anyone out there know what to do with this?

    I just hooked up my Canon MP830 printer/scanner/fax to my MAC and can print but can't scan.  Anyone out there know what to do with this?

    Have you downloaded the approriate Snow Leopard drivers for that printer? Make sure you get the appropriate and latest MP Navigator, as you start scans from the computer, not the all-in-one.  Get them from http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mp_s eries/pixma_mp830#DriversAndSoftware

  • Clone stamp disappeared from Ps CC.  Does anyone know what to do about this?

    Hi Everyone, I have PS CC on an iMac and when I started with CC, the clone stamp and pattern stamp shared a spot and they both worked. However, now the clone stamp has disappeared and I only have the pattern stamp. The other day it showed back up but now it is gone again. Does anyone know what to do about this?

    Don't just click on the Tool location, CLICK AND HOLD.

  • Does anyone know what's up with the iPhone 4s' battery life? Some days it last a long time and other days it drains extremely fast.

    Does anyone know what's up with the iPhone 4s' battery life? Some days it last a long time and other days it drains extremely fast.

    Not to point out the obvious, but battery life depends very much on what is running and how much the device is being used.
    If the battery lasts longer on a day you make no phone calls, but lasts less the day you make 5 hour long calls, this is to be expected.
    If however the iPhone has the same level of use on both days, with different power consumption, this would infer a background process (or App) is trying to do something (connecting to server or creating a back up etc).
    I switched off all thrid party apps from being included in my iCloud backup, which saves a huge amount of space on the cloud and allows the back up to take barely a couple of minutes.
    Battery life seems ok so far on my 64GB 4S (Bluetooth on, Wi-Fi on, Location Services on, Push notifications on, Screen set to just under half brightness with Auto Adjust on)

  • My apps say they are "waiting" and they have been for days updating.  They must be stuck.  Not all of them but about 10 that ia am waiting on.  Does anyone know what do do about this?

    My apps say they are "waiting" and they have been for days updating.  They must be stuck.  Not all of them but about 10 that ia am waiting on.  Does anyone know what do do about this?

    Just to add a couple of more things that you can try ... Along with what TMM suggested ....
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    You can also try updating from the app description page rather than the Updates Tab. Do a search for the apps that needs to be updated - when it appears in the search - tap on the app icon. Then tap on Update or Install - whatever happens to appear next to the app icon - in the description page that pops up.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.

  • My ipod 5 froze and wont work or anything and my home button doesnt work so i cant soft reset or anything does anyone know what to do about this?

    my ipod 5 froze and wont work or anything and my home button doesnt work so i cant soft reset or anything does anyone know what to do about this?

    Try:                                               
    - iOS: Not responding or does not turn on           
    Ignore the reset and when it says plae the iPod in Recovery mode
    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:       
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • Outlook 2007 doesn't show icloud service running.  Does anyone know what the dll for this service is so it can be manually added to outlook?

    Outlook 2007 doesn't show the icloud service running in Windows 7 within outlook.  Does anyone know what the dll for this service is so it can be manually added to outlook?   I've installed the icloud control panel app and set it up to synch everything, but after initially downloading my icloud calendar, it won't process any calendar updates (new entries made on either iphone 4 on ios 5 or outlook). 
    So since the control panel installed, but the service doesn't show running in outlooks "trust center" add-ins list, anyone know the actual dll file it would point to so I can see if I can add it the hard way?

    I had the same issue and figured it out.  First you have to start Outook as administrator.  To do this, shift and right-click on outlook and click run as administrator.  Next you need to enable Hard-disabled add-ins:
    Hard-Disabled Add-Ins
    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.
    To re-enable an add-in
    In the application, click the File tab. 
    Click the ApplicationName Options button.
    In the categories pane, click Add-ins.
    In the details pane, verify that the add-in appears in the Disabled Application Add-ins list.  The Name column specifies the name of the assembly, and the Location column specifies the full path of the application manifest.
    In the Manage box, click Disabled Items, and then click Go.
    Select the add-in and click Enable.
    Click Close.
    Then you need to activate it. 
    To re-enable an add-in
    In the application, click the File tab.
    Click the ApplicationName Options button.
    In the categories pane, click Add-ins.
    In the details pane, verify that the add-in appears in the Inactive Application Add-ins list.  The Name column specifies the name of the assembly, and the Location column specifies the full path of the application manifest.
    In the Manage box, click COM Add-ins, and then click Go.
    In the COM Add-Ins dialog box, select the check box next to the disabled add-in.
    Click OK.

  • TS1702 Any body know what is happening with this app "eTodo" ? is no more in the iTunes store !

    Any body know what is happening with this app "eTodo" ? is no more in the iTunes store !
    I have this problem for one year I think and no one can’t solve that,I made 6 screen shots and I will uploading in a few seconds all of them and please just check them !
    My problem is: I bought an application last year and after some time I had lost the app from my iTunes store.
    Now,what I want to do is: I want to get that app again,but I could not find anywhere in the iTunes  store,websites ,nobody could not help me with that
    The app has been deleted from everywhere !

    If the app is no longer in the store then you won't be able to redownload it. You don't have a copy of it in your computer's iTunes library or on your backup of your downloads/library so that you can sync it back to your phone ?

  • When opening aperture I get Warning that says There was an error opening the database for the library "~/Desktop/Feb 12, 2011.aplibrary".  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning?

    When opening Aperture I get Warning that says "There was an error opening the database for the library “~/Desktop/Feb 12, 2011.aplibrary.”  That's it. The program does not open at all.  I'm concerned that my pictures may be lost.  Does anyone know how to deal with this Warning? 

    Might just need to rebuild the library...see this link:
    Aperture 3: Troubleshooting Basics

  • I have a number - 999-999-9999 showing up as an incoming call on one of my phones.  Anyone know what kind of number this is?

    On the list of recent calls, I have a number - 999-999-9999 showing up as an incoming call on one of my phones  Anyone know what kind of number this is?

        bovine2, We can understand the importance of tracking call details. If you are logged in to your My Verizon account and you see the number is all 9's,0's etc the number has been restricted by the originating party. Are you only seeing this number for incoming calls?
    sheritah_vzw
    Follow us on Twitter
    @VZWSupport

  • My Iphone 5 does this weird thing where it just freezes, some random vertical lines show up, and shuts off. Does anyone know what the cause of this is?

    My Iphone 5 does this weird thing where it just freezes, some random vertical lines show up, and shuts off. Does anyone know what the cause of this is?

    Backup and restore your software via iTunes. If the problem continues, restore as a NEW device. If this solves it, that means there is some corruption in your backup file, or maybe it's one of your apps causing the trouble. If the problem is still there, you should take it to the Genius Bar at an Apple Store for evaluation.

Maybe you are looking for

  • Customer and vendor bank details

    hello,   what goes in feilds bank key and bank account in customer and vendor bank details in the master data. is it required to have those. please let me know.

  • Compress the request of inventory cube 0ic_c03

    Hi experts, I want to compress the infocube 0ic_c03 daily for the delta requests through process chains. In the process chain, process types there are 2 options: 1.Collapse only those requests that were loaded XXX days ago 2.Number of requests that y

  • Wireless is coming through a LAN port

    Just got broadband, and there tech support has done something to my computer that now my wireless signal comes through a lan port and not the wireless port. Anyone know how to fix this?

  • Problems with song/computer activation

    I wanted to play a specific song of a downloaded album, but iTunes asks me everytime to activate my Mac. The problem is, I already have it activated...if I type in my password again, iTunes informs me about that fact and I'm still not able to play th

  • New user - how do i change permissions from old to new user?

    I've got a new employee. I need to switch all permissions of files from one employee to the new guy. Any EASY way to do this? Files/folders are in many different sharing points and folders. Thanks!!!