计算机与现代化

• 网络与通信 • 上一篇    下一篇

 基于配置文件映射的数据解析方案

  

  1. 东华大学计算机科学与技术学院,上海201620
  • 收稿日期:2014-03-19 出版日期:2014-06-13 发布日期:2014-06-25
  • 作者简介: 薛琳(1990-),男,上海人,东华大学计算机科学与技术学院硕士研究生,研究方向:新媒体技术; 夏小玲,女,副教授,硕士生导师,研究方向:图像处理与数据可视化。

A Scheme of Data Analysis Based on Configuration Mapping

  1. School of Computer Science and Technology, Donghua University, Shanghai 201620, China
  • Received:2014-03-19 Online:2014-06-13 Published:2014-06-25

摘要:

 针对移动设备应用中日益复杂的数据解析过程,本文提出一种基于配置文件映射的数据解析方案。该方案结合主流的LibXML2解析器以及Mac OSX下的Plist文件,通过key-value键值对的简
单配置实现在移动设备端对网络请求数据的解析。实验结果表明,该方案不仅可以有效减少代码的冗余,降低模块间的耦合度,并且便于交互数据的维护和更新。

关键词: 移动设备, 映射, 数据解析, Plist, 代码冗余

Abstract:

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, combining 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.

Key words:  mobile device, mapping, data analysis, Plist, code redundancy