摘要
传统的二进制数据流传输方式已经不能适用于复杂或嵌套的数据结构,而XML数据解析的消耗又给移动端的受限设备带来了很重的负担。因些,如何选择合适的数据解析模型以提高移动端的运行效率是移动应用中需要重点考虑的问题。本文详细研究了XML的两类数据解析模型(DOM和XMLPull)的解析机制,并搭建了Eclipse+WTK的移动模拟环境对两类模型进行分析。通过模拟实验对KXML的这两类解析模型在移动应用中的时间消耗和占用内存情况进行了详细的比较和分析,并讨论了二者的应用范围。本文的研究对移动应用中数据解析模型的研究具有参考价值。
With the development of mobile application,the transmission data between mobile device and server has become more and more complex.The conventional binary data does not apply to complex or nested data structure,and the use of XML parser created a lot of pressure on the mobile limited device.How to choose the right data analytical model to improve the efficiency of mobile device is an issue to be solved in mobile application.In this paper,two XML data analytical models(DOM and XMLPull)have been analyzed in detail and a simulated mobile circumstance of Eclipse+WTK has been built.After that,the time consumptions and the memory taken up of the two KXML analytical model in simulated experiment have been compared and analyzed,and the application scope of them has been discussed.A better reference has been provided for the selection of data analytical model in mobile application.
作者
李颖
陈明
LI Ying;CHEN Ming(School of Mathematics and Computer,Yichun University,Yichun 336000)
出处
《办公自动化》
2020年第9期28-32,64,共6页
Office Informatization
基金
国家自然基金项目:后量子的基于身份认证密钥*交换方案研究(No:61662083)。