计算机工程与应用 ›› 2012, Vol. 48 ›› Issue (25): 72-76.

• 研发、设计、测试 • 上一篇    下一篇

基于模式匹配的XML自动转换技术

曹兰英,严  义,邬惠峰   

  1. 杭州电子科技大学 软件与智能技术研究所,杭州 310037
  • 出版日期:2012-09-01 发布日期:2012-08-30

Automating XML document transformations based on schema matching

CAO Lanying, YAN Yi, WU Huifeng   

  1. Institute of Software and Intelligent Technology, Hangzhou Dianzi University, Hangzhou 310037, China
  • Online:2012-09-01 Published:2012-08-30

摘要: XML的自描述性、可扩展性等特点使得XML非常适用于异构域数据的交换,以XML作为数据交换格式需要XML转换技术的强力支持。为实现异构域XML文档自动转换,提出一种XML Schema模式匹配方法,建立了模式元素之间的映射关系。该映射关系文件可翻译成XSLT脚本,实现XML文档的自动转换;实验结果证明了该方法具有较高的查准率和查全率。

关键词: 模式匹配, XML Schema, XML转换

Abstract: XML has the characteristics of self-description, extensibility, which makes the middleware model easy for the realization of description and transformation for heterogeneous data sources in the field of data exchanging. Using XML as the format between data exchanges needs the strong support from XML transformation technology. In order to automate as much as possible all steps of XML document transformation process, this paper describes a XML Schema matching approach that establishes mapping relationships between two XML Schemas. The mapping results can be used to generate XSLT scripts that support the transformation of XML documents. The experimental results show that this method has a high precision and recall measures.

Key words: schema matching, XML Schema, XML transformation