文档介绍:上海交通大学
硕士学位论文
XML与数据库双向接口的研究和实现
姓名:孔翔鹰
申请学位级别:硕士
专业:计算机技术
指导教师:李治柱;俞汉清
20060801
上海交通大学工程硕士研究生学位论文
摘要
随着中国和德国交流的深入,双方迫切的需要建立一个信息资源丰富、
功能强大网上信息交流的平台,使得两地的用户在科技、经济、政策、文
化等方面可以进行更好的相互交流,从而促进两地间经济上的合作与繁荣。
为此,上海市科委和德国巴符州政府共同提出并资助了跨国企业级项目“上
海-巴符州科技经济信息通道”(以下简称“通道”项目)。
本文根据这个“通道”项目的需要,研究了异构数据库的数据交换问
题。为通道设计了一个接口来实现 XML 与数据库的双向数据交换,以保证
网上信息交流的畅通。为了实现 XML 与数据库的双向接口,本文对 XML
与数据库的相关技术进行了分析和研究。通过对 XML 的数据存取机制和
XML 与数据库的映射技术的分析和研究,提出了双向接口的设计方案。基
于 XML 成为网络系统中通用数据交换标准,通过 JDBC 实现对数据库系统
的连接,利用 Java 的无平台性,在 Web 服务器与数据库之间建立一个数据
业务接口,实现数据库中数据到 XML 文档和 XML 文档到数据库中表数据
的转换。数据库与外界之间都以 XML 文档作为交换介质,屏蔽了所有数
据库有关的技术细节,同时使系统的可扩展性更好。
该接口已应用到通道项目中,并取得了良好的效果。
本文的意义在于,本文不仅成功的为“通道”项目设计了一个数据接
口,并且对其他异构数据源的数据交换也有通用的参考和指导意义。
关键词:XML,数据库,数据交换,映射
I
上海交通大学工程硕士研究生学位论文
ABSTRACT
The cooperation between China and other countries or areas es closer and
closer. With the munication between China and Germany, it's time to
build a platform that can support users to share technology, economy, policies and
culture information. So Shanghai Science & mittee of China and the
Baden Wuerttemberg government of Germany sponsor the project that named
"Shanghai-Baden Wuerttemberg Information Portal of Science Technology &
Economy".
This paper is based on “Shanghai-Baden Wuerttemberg Information Portal of
Science Technology & Economy”, focusing on researches of the data exchange of
different architecture systems. In this paper, the research work we do is to apply the
bi-directional interface between XML and database to the information portal. This
paper also researches some technologies about XML and database for the
implementation of bi-directional interface between XML and database. Through the
analysis of XML data storage mechanism and database mapping technology, this
paper puts forward the design and implementation of bi-directional interface
between XML and database. Connecting with database though JDBC, building a
dat