摘要
针对移动设备应用中日益复杂的数据解析过程,本文提出一种基于配置文件映射的数据解析方案。该方案结合主流的LibXML2解析器以及Mac OSX下的Plist文件,通过key-value键值对的简单配置实现在移动设备端对网络请求数据的解析。实验结果表明,该方案不仅可以有效减少代码的冗余,降低模块间的耦合度,并且便于交互数据的维护和更新。
For the increasingly complex data types in mobile device, this paper presents a new scheme that based on mapping in data-analysis. In this scheme, analysis of the request data can be more easily though the configuration of key-value pairs, combi- ning the mainstream XML parser of LibXML2 and the Plist file in Mac operating system. This scheme can effectively reduce the redundant code, lowers the coupling degree between modules and be more easily to maintain the interactive data.
出处
《计算机与现代化》
2014年第6期27-31,共5页
Computer and Modernization