期刊文献+

一种将XML模式转化为编程语言的算法 被引量:5

An algorithm to transform XML Schema into programming language
下载PDF
导出
摘要 为设计与实现XML通用数据编辑框架中编辑数据的验证,提出一种将XMLSchema文档转化为Java代码的算法。研究XMLSchema的元素和元素间嵌套关系的定义规则,在此基础上定义元素到Java代码的转换规则和转换算法。该算法以Schema元素为根元素,采用深度优先搜索算法遍历XMLSchema文档的每个元素,保证对XMLSchema文档转换的完整性。算法实现了XMLSchema定义的28种元素和12种限定元素到Java代码的转换,并且元素间的嵌套关系也得到完整的保存。最后通过转换实例验证了该算法的正确性和有效性。 In order to design and implement the universal data-editing framework of XML(extensible makeup language)schema,an algorithm to transform XML Schema document into Java code is proposed.The definition rules of elements and their nested relation of XML Schema are studied.On this basis,the transformation rules and transformation algorithm from elements to Java code are defined.Taking schema element as the root element,the deep first search algorithm is used to traverse each element of XML Schema document,which can ensure the completeness of XML Schema document transformation.The transformation from twenty-eight kinds of elements defined by XML Schema and twelve kinds of facet elements to Java code is realized by means of the algorithm,and the nested relation between elements can be reserved completely.The correctness and validity of the algorithm are verified with an transformation instance.
作者 吴家菊 纪斌 刘振吉 陈泉根 WU Jiaju;JI Bin;LIU Zhenji;CHEN Quangen(Institute of Computer Application,China Academy of Engineering Physics,Mianyang 621999,China)
出处 《现代电子技术》 北大核心 2019年第11期169-173,共5页 Modern Electronics Technique
基金 装备预研领域基金(614000402)~~
关键词 可扩展标记语言模式 JAVA 转换 元素 解析单元 创建单元 extensible makeup language schema Java transformation element class analysis unit creation unit
  • 相关文献

同被引文献56

引证文献5

二级引证文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部