0

Here is what my XML looks like (I'm calling XML using JSON)

<shishir>   
    <english>    
        <0>a</0>   
        <1>aa</1>    
        <2>aaa</2>    
        <3>aaaa</3>
        <4>aaaaaa</4>    
        <5>aaaaaaa</5>
    </english> 
</shishir>

Now what I want is to put this value in an array, and then I want to set this array into a table view.

But I have no idea how can I do it. How can I set this array in a table view?

1 Answer 1

1

If you have valid XML, it's easy to parse it using NSXMLParser.

You can then create a UITableViewController subclass and present the data in the array quite easily.

These two guides should be of help:

Sign up to request clarification or add additional context in comments.

2 Comments

What if i want to retrive values in between <0>shishir</0> <1>shishir2</1> tags i want output as shishir shishir2 how can i do this?
can u explain parser:foundcharacter, l'll bit more. thanks n regard shishir

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.