摘要
XML(Extensible Markup Language),即可扩展标记语言。为保证文档的有效性,任何应用程序在执行关于XML数据的计算和转换之前,必须对XML文档进行验证。在完成对待验证的XML文档的封闭性检测之后,对XML文档和其相对应的Schema文档的数据结构进行检测,判断一下它们的树结构是否完全同构。再利用DOM技术读取Schema文档树和XML文档树的各节点,判断XML文档树各节点是否符合与之相对应的Schema文档各节点所定义的规则。具体来说,包括:类型定义部件,组部件,属性组部件。该系统可以顺利地检测待验证的XML文档,基于Schema文档规则,在满足封闭性和同构性的前提下,可以判断并指出XML文档的错误信息,并对其进行定位。
To achieve the validity of the documents,any application programme has to verify the XML(Extensible Markup Lauguage) document,before the implementation of the calculation and conversion of XML data.After closure examining of XML documents verified,test the data structure of XML document and corresponding Schema document,to judge whether their tree structure are isomorphous.Then by using DOM technology to read every node of the schema document tree and the XML document tree,judge if all nodes of XML document tree are met the rules defined by nodes of corresponding schema document,specifically the type definition parts,the components,and the properties group components.The system can be used successfully to detect the XML documents to be verified,based on schema document rules;and to judge and point out all XML document errors and their position,on the premise of meeting the closure and isomorphism requirements.
出处
《沈阳师范大学学报(自然科学版)》
CAS
2010年第2期229-232,共4页
Journal of Shenyang Normal University:Natural Science Edition
基金
辽宁省教育厅高等学校科学研究项目(2009679)