摘要
Android平台上应用程序访问Web服务时,多数都会使用XML的解析技术.文中从工作原理、常用接口及类方法,XML文档解析的过程三个方面,分析比较Android所支持的三种解析技术:DOM、SAX、XML Pull.指出Android平台上选用何种解析技术主要取决于三方面的因素:移动设备内存的大小、XML解析文档的大小,以及移动应用程序中解析文档的主要用途.
XML parsing technology is often used when the application access web server on the Android platform. Focusing on the working principle, the common interface and classification, this paper analyzes and compares three kinds of parsing technology : DOM, SAX and XML pull, which are supported by Android. It is pointed that the key elements of choosing parsing technology include the size of the mobile device memory, XML parsing document size, and the main purpose of parsing document in mobile application.
出处
《南京晓庄学院学报》
2011年第6期98-100,共3页
Journal of Nanjing Xiaozhuang University