Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method of storing extensible markup language file and inserting relational database sheet

An extended markup language and file storage technology, which is applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of no "round trip", low efficiency, and inability to in-depth SQL queries, etc., and achieve the effect of efficient query

Inactive Publication Date: 2005-06-01
INST OF SOFTWARE - CHINESE ACAD OF SCI +1
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The two methods have their own advantages and disadvantages. Using the former method, the XML Schema is mapped to multiple interrelated tables in the database to store the XML files and then querying them will result in multi-table joins, making the query efficiency very low, and in When reorganizing the xml hierarchy, it is not only inefficient but also difficult to restore the original, and there is no good "round trip" (the consistency of the stored xml document and the returned xml document)
Using the latter method to store the xml file, because a large number of tags are used in the xml file, a large number of tags will take up a lot of storage space, so adopting this method will waste a lot of storage space, according to statistics, the average is about 40%. Although the method saves the data content and hierarchical structure of the xml file, the SQL query cannot go deep into the fields of the file. The only way to query the file part is to return the entire file and query after parsing. It is not suitable for large files or multi-file queries. Happening

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of storing extensible markup language file and inserting relational database sheet
  • Method of storing extensible markup language file and inserting relational database sheet
  • Method of storing extensible markup language file and inserting relational database sheet

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] Such as figure 1 As shown, the extensible markup language file storage method of the present invention comprises the following steps:

[0052] 10) Store the dependency relationship between the modes in the relational database system table;

[0053] 20) Create a mapping file for each namespace in the Extensible Markup Language file, the mapping file includes all complex types, simple types, global elements and corresponding sub-elements in the schema;

[0054] 30) Generate a corresponding relational database table for each complex type, global element, and simple type element that appears more than once in the mapping file, and the child elements contained in it and simple type elements that appear less than or equal to one time are used as corresponding A field in a relational database table.

[0055] 40) Inserting the element value and attribute value of the extensible markup language file into the corresponding database table.

[0056] By creating a mapping file for ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The expandable markup language file storing method includes the following steps: saving the dependency relationship between modes in the relationship database system list; creating one mapping file for each of the name spaces of the expandable markup language file; creating one relationship database list for each complicated type element, global element and repeatedly appeared simple type element in the mapping file; and inserting the element value and attribute value of the expandable markup language file into the corresponding database list. The method of inserting the element value of the expandable markup language file into the relationship database list includes the steps of: obtaining the mode of the expandable markup language file, reading the database mapping file of the expandable markup language file, and traveling the expandable markup language file to insert the element value into corresponding relationship database list. The present invention has small storing space occupied and efficient inquiry.

Description

technical field [0001] The invention relates to the field of extensible markup language, in particular to a method for storing extensible markup language files and inserting relational database tables. Background technique [0002] With the rapid development of the Internet, xml (Extensible Markup Language, Extensible Markup Language), as a new standard for data representation on the Internet, is being widely used due to its advantages of self-description, flexibility, scalability and platform independence. It is used in various web applications. [0003] How to store xml files so as to effectively manage their data has become a hot research topic today. In recent years, a lot of research work is dedicated to applying database technology to the storage of xml files, using the mature technology of database to store xml files. The current mainstream form of xml database is to use relational databases to store xml files, such as Oracle9i, SQL Server 2000 and other relational ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 李安渝严兵傅朝霞秦良娟丁蔚耿建光秦怀平董胜涛
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products