摘要
XML模式验证作为处理XML数据的前提和保证有着重要的地位,XML Schema作为XML的定义语言,其本身并不能保证XML数据的有效性。利用XML Schema抽象模型,定义了XML Schema中每个复杂类型的模式信息,并用非终节点序对集描述XML文档,最后给出了XML模式验证算法,可以有效地验证XML文档的组织结构和内容类型。
XML validation which is the precondition and guarantee in the use of XML plays a crucial role. XML Schema is a language for defining schemata of XML documents. But it can't guarantee the validity of XML documents. This paper uses Abstract XML Schema Model to define information of every complex type in the XML Schema, and XML document is described into a set of pairs of non-terminal elements. Finally, an algorithm is proposed to validate XML documents. This method with Abstract XML Schema Model can validate the structure of XML document and the type of terminal element.
出处
《计算机应用与软件》
CSCD
北大核心
2007年第3期41-43,60,共4页
Computer Applications and Software
基金
江苏省高校自然科学基金资助(05KJB520107)。