根据XML文档与GML文档的数据特征差别,剖析拉DOM和StAX混合解析方法的原理,结合GML的数据特征及应用操作需求,探讨实现混合型方案的可行性,提出一种具有拉DOM功能和StAX优势的混合型解析方法。实验结果表明,该方法对解析大数据量的GML文档效果明显,能满足GML文档解析过程中的复杂空间操作。
According to the different characteristics of the XML and GML document, this paper parses the principle of the pull DOM and Streaming API for XML(StAX). Combining with the data characteristics of GML and the requirements of application operations, it discusses the feasibility of the mixed scheme, and presents a mixed parsing approach including pull DOM function and StAX advantage. Experimental results show that the method can parse GMI. document of great capacity efficiently and support complex spatial application operations during the parsing process.