in application i have a xml tree Root---> 开发者_如何学编程 Subject---> SubjectID 1 /SubjectID SubjectName MatheMatics /SubjectName Sub_Subject----> Sub_SubjectID 1 /Sub_SubjectID Sub_SubjectName Calculus /Sub_SubjectName /Sub_Subject Sub_Subject Sub_SubjectID 2 /Sub_SubjectID Sub_SubjectName Geometry /Sub_SubjectName /Sub_Subject /Subject Subject----> SubjectID 2 /SubjectID SubjectName Physics /SubjectName /Subject /Root
i want to store subject in one of table view & sub-subject store in another table view how can i do it pro-grammatically.
You can parse an XML document using NSXMLParser and its delegate, NSXMLParserDelegate. You should also look into NSPropertyListSerialization too.
NSXMLParser can be used for parsing XML files. You can google and you will defintely find sample codes.You can also try using TouchXML.
I just googled and found this link
hopw this helps
精彩评论