Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for parsing Extensible Markup Language XML data

A technology for extending markup language and parsing methods, applied in the direction of program code conversion, code compilation, etc., can solve the problems of document model objects occupying memory, consuming human resources, and reducing parsing performance, reducing system memory and CPU overhead, solving Performance bottleneck, the effect of parsing performance improvement

Active Publication Date: 2019-05-24
CHINA MOBILE GROUP SHANDONG
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] First of all, the converted document model object needs to occupy memory, and the larger the XML data, the more memory it takes up, and there is a risk of memory overflow; secondly, in the case of relatively large XML data, using the above parsing method will make the parsing performance worse time-consuming will increase exponentially; finally, custom development conversion procedures need to consume valuable human resources, and the quality of development cannot be fully guaranteed

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
  • A method and device for parsing Extensible Markup Language XML data
  • A method and device for parsing Extensible Markup Language XML data
  • A method and device for parsing Extensible Markup Language XML data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a solution for parsing XML data. In this technical solution, by determining the document object type of the XML data to be parsed, according to the corresponding relationship between the document object type and the node configuration information stored in advance, the node configuration information corresponding to the determined document object type is obtained, and then according to the obtained node The node feature data and node data types contained in the configuration information, as well as the way of assigning the business objects of other nodes except the root node to the business objects of its parent nodes, realize the parsing of the XML data to be parsed, which is different from the existing technology. Compared with XML data, it can directly convert XML data into business objects, avoiding the risk of memory overflow caused by the need to build document...

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 method and device for parsing XML data, which can directly convert the XML data into business objects and obviously improve the parsing performance. The method includes: determining a document object type of XML data to be parsed; acquiring node configuration information corresponding to the document object type from pre-stored node configuration information; the node configuration information includes: node feature data and node configuration information Perform the following operations on each row of data in the XML data in turn until the XML data is parsed: According to the node feature data and the data type of the node contained in the node configuration information, determine the node and the corresponding node of the current row data. the data type of the node; analyze the node according to the data type of the node to obtain the business object of the node; when the node is not the root node in the XML data, the business object obtained Assigned to the business object of the node's parent node.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a method and device for parsing Extensible Markup Language (XML) data. Background technique [0002] Extensible Markup Language (XML), a subset of the standard general markup language, is a markup language used to mark electronic documents to make them structural. It can be used to mark data, define data types, and is a source language that allows users to define their own markup language. It is well-suited for Internet transport, providing a unified method for describing and exchanging structured data independent of applications or vendors. With its own characteristics, XML has become the standard for data information exchange between systems. [0003] Under the Java (computer programming language) language environment, existing XML data parsing technologies mainly include JDOM and DOM4J and so on. [0004] Specifically, when using the JDOM method to parse XML da...

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): G06F8/41
Inventor 朱祥磊徐丽娜廉红吉高向阳
Owner CHINA MOBILE GROUP SHANDONG