摘要
介绍了XML解析的详细过程,设计并实现了一个特定Schema的XML解析器的自动生成工具。该生成工具以一个XML Schema文件作为输入,输出一个JavaCC词法和语法规格说明文件,然后在JavaCC工具的帮助下,生成一个基于特定XML Schema的XML解析器。实验证明,这个生成解析器能够对XML文档进行解析的同时,验证其有效性。
This paper introduces the analytical process, the detailed XML design and implementation of a particular Schema XML parser automatic generation tool. This generation tool to an XML Schema files as input, output a JavaCC lexieal and grammatical specification file, and then in the JavaCC tools help, generates a based on particular XML Schema XML parser, the experiment proved, can be in parser XML document at the same time, to verify the validity.
出处
《微型机与应用》
2011年第21期6-10,共5页
Microcomputer & Its Applications