摘要
XML通过DTD或Schema定义文法。XML解析器根据预定义的文法对XML文档进行验证。但如果应用程序需要处理多个XML文档,并且这些文档之间存在引用,在应用程序中验证这些引用就非常困难。论文针对多XML文档关联验证,提出了一种通用的基于Xerces2-java的多XML文档关联验证机制,该机制通过扩展Xerces2-java现有的组件,在原有的解析过程中增加了关联验证的逻辑,给应用程序提供了方便、灵活的调用接口。实验表明,该机制能够完成XML文档的关联验证,较好地解决了多XML文档关联验证问题。
XML uses DTD or Schema to define grammar.XML parsers validate XML documents according to the defined grammar.But if an application has to manage multiple XML documents and these documents have references among one another,it will be difficult to validate the references.The paper presents a general mechanism for validating muhi-XML documents correlation.The proposed mechanism adds correlating validation logic into the current Xerces2-java components and provides convenient application programming interfaces.Experiments show that the mechanism is a good method for muhi-XML documents correlating validation.
出处
《计算机工程与应用》
CSCD
北大核心
2007年第5期102-105,共4页
Computer Engineering and Applications
基金
国家自然科学基金(the National Natural Science Foundation of China under Grant No.60403029)