摘要
This paper focuses on exporting relational data into extensible markup language (XML). First, the characteristics of both relational schemas represented by E-R diagrams and XML document type definitions (DTDs) are analyzed. Secondly, the corresponding mapping rules are proposed. At last an algorithm based on edge tables is presented. There are two key points in the algorithm. One is that the edge table is used to store the information of the relational dictionary, and this brings about the efficiency of the algorithm. The other is that structural information can be obtained from the resulting DTDs and other applications can optimize their query processes using the structural information.
提出了一种基于边表的关系模式的DTD发布方法 .在分析了关系模式和DTD的特征的基础上 ,给出了它们之间的映射规则 .然后 ,给出了基于边表的转换算法 .获取关系数据字典中的关系模式信息和基于边表的转换算法是该方法的 2个关键点 .关系数据模式发布为DTD文档后 ,其他应用就可以利用DTD所包含的结构信息对关系数据进行优化查询 .