Several easy-to-mix concepts in XML databases 1

Source: Internet
Author: User
When talking about XML databases, developers often refer to two concepts: databases that store XML data, and DBMS of XML databases. The majority of important DBMS products promise that you can integrate XML data into programs without changing existing databases. When talking about XML databases, developers often refer to two concepts: databases that store XML data, and DBMS of XML databases. The majority of important DBMS products promise that you can integrate XML data into programs without changing existing databases. Now let's discuss the XML database and its features.

Original XML database

An original XML database (NXD) can be very simple or complex. I define the concept of a database as follows: permanent data aggregation. Under such a definition, an NXD can logically store an XML document. When XML: DB initiative has more requests for a NXD, I think the above definition can also be met.

The following code lines can be used as an NXD:

<〈? Xml version = "1.0 "? > 〉
<Diet> 〉
<Meal mealName = "breakfast"> "〉
<Item itemName = "toast" unit = "slice" quantity = "2"/> "/〉
<Item itemName = "bacon" unit = "strip" quantity = "2"/> "/〉
</Meal> 〉
</Diet> 〉

Obviously, data aggregation is stored in XML format. If it is stored in a flat file, it will satisfy our definition of NXD: permanent stable data aggregation.

An NXD application uses the same method to store XML documents (such as flat files, relational databases, level databases, and object databases ).

Flat file

A simple flat file is the most simple XML database model. As a "variant", you can store many XML documents at a directory level. To expand the previous model, let's look at the following model:

Diets \
Diets \ Atkins
Day1.xml
Day2.xml
Day3.xml
Day4.xml
Diets \ 3 DayDiet
Day1.xml
Day2.xml
Day3.xml

The Diets directory contains subdirectories, and each subdirectory contains many XML flat files.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.