检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:吴家菊[1] 纪斌[1] 刘振吉[1] 陈泉根[1] WU Jiaju;JI Bin;LIU Zhenji;CHEN Quangen(Institute of Computer Application,China Academy of Engineering Physics,Mianyang 621999,China)
机构地区:[1]中国工程物理研究院计算机应用研究所,四川绵阳621999
出 处:《现代电子技术》2019年第4期71-75,共5页Modern Electronics Technique
基 金:装备预研领域基金(614000402)~~
摘 要:文中研究XML文档的验证机制,提出一种基于XML Schema验证XML文档的算法。该算法将数据语法规则、约束要求及类型要求等采用XML Schema进行描述,既能够基于XML Schema验证XML文档语法的正确性,又提供语法错误的处理机制并支持错误位置追踪。当XML文档存在语法错误时,该算法将错误信息按照错误发生顺序依次输出。通过对错误信息的处理,该算法可以通过鼠标点击错误信息追踪语法错误发生位置。因而数据编辑人员可以高效地对XML文档做出修改,提高了工作效率。为验证该算法的正确性,将该算法集成到某XML编辑器中,并通过实验验证。经过一系列的试验验证,该算法达到了设计要求。The validation mechanism of the XML document is researched,and an XML document validation algorithm based on XML Schema is proposed in this paper.In the algorithm,the data syntax rules,restraint requirement and type requirement are described by using XML Schema,which can not only verify the syntax correctness of the XML document on the basis of XML Schema,but also provide the processing mechanism of syntax error and support error position tracking.The algorithm can output error information in order according to the error occurring sequence if syntax errors exist in the XML document.The algorithm tracks syntax error position by means of mouse clicking after error information processing,so that the data editing personnel can modify the XML document efficiently and improve their own work efficiency.The algorithm was integrated into an XML editor and a series of experiments were carried out,so as to verify the correctness of the algorithm.The results show that the algorithm can achieve the design requirement.
关 键 词:XML SCHEMA XML 文档验证算法 语法错误 错误信息处理 错误位置追踪
分 类 号:TN911-34[电子电信—通信与信息系统] TP311[电子电信—信息与通信工程]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222