I am developing an Iphone app, using swift. I have an xml, coming from a remote server, which contains something similar to a directory structure.
-->root
|___> dir1
|___> dir2
|__>subdir2
|___>dir3
So, the things I am trying to figure out:
1-Which structure should I use, in swift, to represent this object? In Java I am using a TreeItem.
2- How to convert the xml to an object representation? I took a look at "NSXMLParser", but all examples convert an xml file (with URL), into an object. My xml is being built in memory, so I have to convert a String (representing the xml) to an object.
3-How to show this on the screen for the users to select the directories?
Any help would be really appreciated.
Thank you.
No comments:
Post a Comment