摘要
XML已成为数据交换的事实标准,XML在电子商务中的应用越来越广泛。为了更好地利用关系数据库,需要将关系数据转换为XML数据。文中对Schema和DTD进行了比较,Schema模式是XML的首选模式,并分析了Schema的结构和作用,结合电子商务开发提出了关系模式到XML Schema的转换。实现了关系模式到XML Schema的完全转换,该转换能更有效地等价描述关系模式,保证了模式转换后数据的一致性和完整性。
XML has become the standard for data exchange in fact. XML is used widely in E - commerce applications, and relational data is converted to XML data, in order to make better use of relational database. XML Schema was compared with DTD, and the structure and the role of XML Schema are analyzed. Bring about a constraint algorithm of converting from relational schema to XML Schema with the development of E - commerce. And turning relational model into XML schema is achieved completely ,and the algorithm can be more effective descripted relational model equivalent, ensuring integrity and consistency of data after transforming of model.
出处
《计算机技术与发展》
2008年第9期202-204,208,共4页
Computer Technology and Development
基金
湖南省教育科研项目资助(07C718)
湘南学院资助科研项目(06Y017)