首页 | 本学科首页   官方微博 | 高级检索  
     

基于XML Schema的XML存储
引用本文:郝春辉,邹静. 基于XML Schema的XML存储[J]. 计算机工程与应用, 2006, 42(11): 173-175,204
作者姓名:郝春辉  邹静
作者单位:淮阴师范学院计算机系,江苏,淮安,223001;淮阴师范学院计算机系,江苏,淮安,223001
摘    要:文章介绍了一个在关系数据库中,基于XMLSchema的XML存储方案。描述了一个以树模型为模型,XMLSchema为模式的XML数据库的存储系统。首先给出了在关系数据库中存储XMLSchema的方法,在此基础上,又给出了存储XML文档的方法。与通常的XML分解存储方案不同之处在于,在该方案中,XMLSchema被保存到数据库中,未作模式映射,避免了模式映射通常会带来的数据丢失和数据要分散到多个关系表中的问题;对XML文档的存储和查询都是基于XMLSchema的;并且由于所有基于同一个模式的XML文档共享该模式的结构,不必对结构信息进行重复存储,减少了存储空间;最后,由于我们为每一个元素赋予了一个唯一ID值,在进行查询的时候,可以利用该ID值进行定位,具有和XPath表达式相同的作用,但是更为简便。

关 键 词:XML  XML Schema  XS-Tree
文章编号:1002-8331-(2006)11-0173-03
收稿时间:2005-01-01
修稿时间:2005-01-01

An XML Storage Scheme Based on XML Schema
Hao Chunhui,Zou Jing. An XML Storage Scheme Based on XML Schema[J]. Computer Engineering and Applications, 2006, 42(11): 173-175,204
Authors:Hao Chunhui  Zou Jing
Abstract:This paper presents a scheme for decomposing and storing XML in relational database based on XML Schema.An XML database's storage system is constructed,whose model is tree model and whose schema is XML Schema.First we give a method to store XML Schema in relational database,and then give the scheme to store XML based on XML Schema.The special of our scheme is that:XML Schema is stored into relational database but without schema mapping which usually has some defects such as data losing and the decomposed data is usually dispersed to many tables.In our scheme,XML storage and queries are both based on its schema.All the XML stored are stored just the text value.The structure info of them is stored only once and which is hold in the XML Schema.Each element that appears in the XML Schema is given an ID value,which is like the XPath expression when querying but more simple.
Keywords:XML  XML  Schema  XS-Tree
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号