Analysis method and analysis device for XML (extensible markup language) data

A technology of extended markup language and analysis method, which is applied in the field of analysis of extensible markup language data, can solve the problems of document model objects occupying memory, consuming human resources, and reducing analysis performance, so as to reduce the overhead of system memory and CPU, solve Performance bottleneck, analysis performance improvement effect

Active Publication Date: 2017-01-04
CHINA MOBILE GROUP SHANDONG
View PDF3 Cites 5 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 p

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
  • Analysis method and analysis device for XML (extensible markup language) data
  • Analysis method and analysis device for XML (extensible markup language) data
  • Analysis method and analysis device for XML (extensible markup language) data

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0061] In order to solve the problems existing in the prior art, the embodiment of the present invention provides an XML data parsing solution. In this technical solution, by determining the document object type of the XML data to be parsed, the node configuration information corresponding to the determined document object type is obtained according to the corresponding relationship between the document object type stored in advance and the node configuration information, and then according to the obtained node The node feature data and the data type of the node contained in the configuration information, as well as the way of assigning the business objects of nodes other than the root node to the business objects of its parent node, realize the analysis of the XML data to be parsed, which is similar to the existing technology. It can directly convert XML data into business objects, avoiding the need to build document model objects as intermediate results during traditional XML ...

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 an analysis method and an analysis device for XML (extensible markup language) data. By the analysis method and the analysis device, the XML data can be converted into business objects directly, and accordingly, analysis performance is improved obviously. The method includes determining document object type of to-be-analyzed XML data; acquiring node configuration information corresponding to the document object type from pre-stored node configuration information, wherein the node configuration information includes node characteristic data and node data type; performing operation on the data in each line of the XML data sequentially until the XML data are analyzed, wherein the operation refers to determining nodes corresponding to the data in the current line and the data types of the nodes according the node characteristic data and the node data types both included in the node configuration information; analyzing the nodes according to the data types of the nodes to obtain the business objects of the nodes; assigning values of the obtained business objects to business objects of father nodes of the nodes when the nodes are not root nodes in the XML data.

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