开发者

XML Parsing and storing the data and retriving the data

Here in my project i receive a xml file, in which the flow of the project is decided, my project contains video player to play video files, a audio recorder to record voice and a application form to get information regarding the user, but here the flow is completely dynamic each time i receive an xml in which the next screen to display is not fixed.

Here i know to parse the xml but i have to know which collecti开发者_如何学JAVAon structure is good to store and retrive (collection structure such as mutablearray, mutabledictionary, plist, or sqlite) else can i use beans or any other method is there please help me.

Thanks...


I would say implementing "beans" that are logically sound with your flow logic, then have a mapper maps the XML to the beans (create beans base on the XML). This way you decouple your flow logics from the XML file format, so later on if you decide to use JSON or the XML file format changes, all you have to do is to change the mapper.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜