摘要
为XML解析提供快速、高效的解析生成方法,适应基于XML进行数据交换时的接口变化,提高接口解析适应能力。设计了基于XSD的分析方法,通过分析结果,识别XML文件的结构,并生成基于模式文件的解析程序,通过动态编译解析程序实现接口的动态适应能力。通过试验分析,此方法可以实现对基于元素的XML文件的解析代码生成,运行效率与基于硬编码的解析方法相当,但其对开发效率的提高明显。
XML parsing to provide fast and efficient analytical method to generate XML-based data exchange to adapt to the interface when you change to improve the analytical ability to adapt to the interface.XSD-based analysis of the design method,analysis,identify the structure of XML documents and generates the file based on pattern analysis process,through dynamic compilation parser that implements the interface of dynamic adaptability.Through experimental analysis,this method can achieve elements of XML documents based on parsing code generation,operating efficiency and analytical method based on fairly hard-coded,but its development efficiency significantly.
作者
李泽民
巩文化
毕学军
王小振
LI Ze-min,GONG Wen-hua,BI Xue-jun,WANG Xiao-zhen(Information Department,The Academy of Armored forces Engineering,Beijing 100072,China)
出处
《电脑知识与技术》
2011年第5期3075-3076,3091,共3页
Computer Knowledge and Technology