The Processing Method of Pattern Matching XML File Format and Relational Database Conversion

A pattern matching and file format technology, which is used in database management systems, special data processing applications, structured data retrieval, etc.

Active Publication Date: 2019-05-21
THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing XML and relational database conversion implementation methods, they are basically based on the DTD and XML Schema in the XML file (DTD and XML Schema are used to constrain the XML document and determine the structure, elements and attributes of the XML document. name and type) to achieve data conversion, but in most cases in reality there is no XMLSchema and DTD in the XML interface file

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
  • The Processing Method of Pattern Matching XML File Format and Relational Database Conversion
  • The Processing Method of Pattern Matching XML File Format and Relational Database Conversion
  • The Processing Method of Pattern Matching XML File Format and Relational Database Conversion

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0081] see figure 1 As shown in , this example shows an XML format data sample commonly used in information system interaction, from which four common data grouping patterns can be abstracted as follows:

[0082] The first type is a group of descriptive elements in the entire XML file, which is characterized in that the superior node of each leaf node is the root node, and there are no child nodes under the node, and it only appears once in the entire XML file (such as figure 1 first class shown);

[0083] The second type is a group of data groups that appear at most once in the XML file, and its characteristic is that the superior node of the branch node (assumed to be A) is the root node, the branch node A appears only once or does not appear, and all its child nodes are leaves node (such as figure 1 the second class shown);

[0084] The third type is a data group that has the same structure in the XML file and can appear multiple times. Its characteristic is that the sup...

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 invention discloses a mode-matched XML file format and relation database conversion processing method. The method comprises the following steps: step 1, through analyzing an XML file format, identifying a data mode in an XML file, and compiling the XML file into a data mode configuration file; step 2, reading and analyzing the XML file, matching the XML file with a data mode in the data mode configuration file, forming a tree-type data structure, and identifying data items; and step 3, by use of the identified data items, converting the data items into a corresponding database table and a database field, assembling an SQL sentence and completing data operation so as to realize conversion between the XML file and a relation database.

Description

technical field [0001] The invention belongs to the technical field of computer data processing, and the invention relates to a processing method for converting an XML file format of pattern matching and a relational database. Background technique [0002] Extensible Markup Language (eXtensible Markup Language, XML) as a computer technology, although superficially simple, has surprisingly wide applicability and profound impact on the world of computer software, database management and B2B communication. This mark-based extensible language provides powerful functions, not only can provide a highly structured and easy-to-handle way for constructing data, but also can store and exchange information about the meaning of data, which is the main way of cross-platform information exchange . [0003] To use XML for data exchange, we must first solve the problem of parsing XML documents and interpret its semantics clearly. Members of the W3C and XML_DEV mailing lists respectively p...

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 Patents(China)
IPC IPC(8): G06F16/25
CPCG06F16/258
Inventor 田振兴史慕志法晓宇滕达
Owner THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products