Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 3 of 3
  1. Thread AuthorThread Author   #1  
    chakri_123's Avatar
    iPhone Nanite

    8 Posts

    Default How to to make xml data into array.

    Hi Friends,

    Actually I am implementing Iphone native application.

    I have one xml file as a string , which I got a response from the server.

    I want to make that xml data into array.

    could you plz help me .. how to do the same.

    plz send me related sample source code.

    Thank u friends ....
  2. #2  
    flyingember's Avatar
    iPhone Elite

    1,986 Posts
    Global Posts
    2,026 Global Posts



    split the string up into pieces. In php it's the split() command
    use a for or while loop and use a counter to increment the array each time

    basically, you want us to teach you a very basic programming fundamental. I would get some books and learn programming
  3. #3  
    Dene's Avatar
    iPhone Newbie

    11 Posts


    Look up NSXMLParser reference on Google. It's part of the basic iPhone SDK library. It's a bit tricky to use, but - assuming you're coding in Objective-C - it's what you want.

Posting Permissions