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

Method and apparatus for importing contents of XML file into database

A database and file technology, applied in the computer field, can solve the problems of time-consuming, unstable system, and system performance decline in the import of tender documents, and achieve the effect of avoiding system memory overflow, shortening operation time, and improving import efficiency.

Active Publication Date: 2016-02-10
国泰新点软件股份有限公司
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing technologies usually execute SQL on the data stored in XML one by one, or use DataAdapter to insert them together, which is not only slow, but also causes rapid decline in system performance, system instability, and even memory overflow when the XML file is large
For example, in the field of electronic bidding, the XML file of the bill of quantities is too large, which results in a long time-consuming import of the bid documents during on-site bid opening, which cannot achieve the desired effect and meet the high-performance requirements.

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 and apparatus for importing contents of XML file into database
  • Method and apparatus for importing contents of XML file into database
  • Method and apparatus for importing contents of XML file into database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0022] figure 1 Shows a flow chart of a method for importing the content of an XML file into a database according to an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0023] In step S110, the XML data in the XML file is loaded into the memory in a streaming manner. Wherein, the XML data in the XML file is read in segments by using the streaming method, which can facilitate the following ste...

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 present invention discloses a method and an apparatus for importing contents of an extensible markup language (XML) file into a database. The method comprises: loading XML data in the XML file into a memory in a stream mode; acquiring data from the XML data in the memory and storing the acquired data into a designated data table, wherein a data storage structure of the designated data table is the same as that of a designated database; and importing the data in the designated data table into the designated database. According to the technical scheme, not only is the speed of the XML file in the reading process promoted and the method and the apparatus have the beneficial effects of stability for reading and difficulty in breakdown, but also when the data acquired from the XML file is imported into the database, the data is firstly stored into the designated data table with the same storage structure with the designated database, so that data can be submitted into the database in batch, the operation time of the database is greatly reduced, and the data importing efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and a device for importing the content of an extensible markup language XML file into a database. Background technique [0002] XML (ExtensibleMarkupLanguage, Extensible Markup Language), is a cross-platform, content-dependent technology in the Internet environment, and is a powerful tool for processing structured document information. Extensible Markup Language XML is the most commonly used simple data storage language today, and it can use a series of simple custom tags to describe data. [0003] In many scenarios, it is necessary to import the content of the XML file into the database. For example, in the field of electronic bidding, it is necessary to import the data stored in the bill of quantities in XML format in the electronic bidding document into the database of the electronic bid opening and evaluation system. Existing technologies usually execute SQL on th...

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
CPCG06F16/284G06F16/86
Inventor 李强
Owner 国泰新点软件股份有限公司
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