mysql存储xml⽂件_存储XML⽂档的⽅法
mysql存储xml⽂件
There have been several approaches that have been proposed to organize the contents of the XML document basically to facilitate the subsequent querying and retrieval have been proposed.
已经提出了⼏种⽅法来基本上组织XML⽂档的内容,以⽅便随后的查询和检索。
most common approaches to store the XML document:
The following are the most common approaches to store the XML document
存储XML⽂档的最常⽤⽅法
最常⽤⽅法 :
以下是存储XML⽂档
1) Using a DBMS to store the document as text
1)使⽤DBMS将⽂档存储为⽂本
An RDBMS can be used to the store the complete XML document as text field within the DBMS records or objects.
RDBMS可⽤于将完整的XML⽂档存储为DBMS记录或对象中的⽂本字段。
This approach is basically when DBMS has a special module for processing the XML document, and it can work for storing document-centric XML documents.
基本上,这种⽅法是在DBMS具有⽤于处理XML⽂档的特殊模块时,并且可以⽤于存储以⽂档为中⼼的XML⽂档。
The keyword indexing function of the document processing can be used to speed up search and retrieval of the documents.
⽂档处理的关键字索引功能可⽤于加速⽂档的搜索和检索。
2) Using a DBMS to store the document as data elements
2)使⽤DBMS将⽂档存储为数据元素
This approach will work when we want to store the document that follows a specific XML, DTD schema.
当我们要存储遵循特定XML DTD模式的⽂档时,此⽅法将起作⽤。mysql存储文档
Because in such schema all will have the same structure so that one can easily design a relational database to store the leaf-level data elements within the XML documents.
因为在这种模式下,所有⽂件都将具有相同的结构,所以可以轻松地设计⼀个关系数据库来在XML⽂档中存储叶级数据元素。
This approach basically requires a mapping algorithm to design a database schema that can work comfortably with the XML document structure which is specified in XML schema.
该⽅法基本上需要⼀种映射算法来设计数据库模式,该数据库模式可以与XML模式中指定的XML⽂档结构轻松地协同⼯作。
These algorithms can be implemented either as an internal DBMS module or as a separate middleware that is not the part of DBMS.
这些算法既可以实现为内部DBMS模块,也可以实现为单独的中间件,⽽不是DBMS的⼀部分。
3) Designing a specialized system for storing native XML document
3)设计⼀个⽤于存储本机XML⽂档的专⽤系统
Basically, we can design and implement a new database model based on the Hierarchical model such systems are basically known as NATIVE XML DBMS.
基本上,我们可以基于Hierarchical模型设计和实现⼀个新的数据库模型,这样的系统基本上被称为NATIVE XML DBMS。
This system basically includes a data compression technique which will reduce the size of documents while storing it.
该系统基本上包括⼀种数据压缩技术,该技术将在存储⽂档时减⼩⽂档的⼤⼩。
Dynamic Application Platform of eXcleon provides such facilities.
eXcleon的动态应⽤程序平台提供了这样的功能。
4) Creating or publishing customized XML documents from preexisting relational database
4)从现有的关系数据库创建或发布⾃定义XML⽂档
We know that there are the enormous amount of data that are already stored in relational databases and some of this data we need to be formatted as documents for exchanging or displaying over the web.
我们知道,关系数据库中已经存储了⼤量数据,我们需要将其中⼀些数据格式化为⽂档,以便在Web上交换或显⽰。
In this approach, we basically use a separate middleware software layer to handle the conversion needed between the XML documents and relational databases.
在这种⽅法中,我们基本上使⽤单独的中间件软件层来处理XML⽂档和关系数据库之间所需的转换。
mysql存储xml⽂件

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。