Check patentability & draft patents in minutes with Patsnap Eureka AI!

Message analysis method and device

A message parsing and message technology, applied in the field of message parsing, can solve the problem that the parsing method is not universal

Pending Publication Date: 2022-04-22
CHINA UNIONPAY
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing technical solutions, in an XML message, each sub-message node under the parent message node may contain message nodes with different node names, and also contain multiple message nodes with the same node name, so Different message parsing methods are required to analyze complex structured XML messages and general structured XML messages separately, and if the node names of message nodes in complex structured XML messages change (such as message node a becomes message node b), it is necessary to modify the XML message parsing method of the complex structure according to the changed name, which leads to the fact that the parsing method of the prior art does not have universality

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
  • Message analysis method and device
  • Message analysis method and device
  • Message analysis method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0065] In order to better illustrate the technical solution of the present invention, the possible nouns are explained below.

[0066] XML (Extensible Markup Language, Extensible Markup Language): It is a commonly used request message transmission format language and attribute configuration format language, which is very versatile. It provides a unified method to describe and exchange application-independent structured data.

[0067] X...

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 message analysis method and device. The method comprises the following steps: acquiring a to-be-analyzed message; determining a message node of the to-be-analyzed message; for any message node in the to-be-analyzed message, determining whether each sub-message node of the message node has the same node name, and if so, creating an information record of the message node in an array form; otherwise, creating an information record of the message node in a key value pair form; generating a Java object according to the information record of each message node; the Java object is used for representing the message to be analyzed. Therefore, the message with a complex structure and the message with a general structure can be analyzed through the same analysis method; and even if the name of each message node is changed, the structure and information of each message node can be determined, so that the universality of the analysis method is improved.

Description

technical field [0001] The invention relates to the field of message analysis, in particular to a message analysis method and device. Background technique [0002] With the development of big data, the transmission of request messages plays an increasingly important role. Among them, XML (Extensible Markup Language, Extensible Markup Language), as a commonly used request message transmission format language and attribute configuration format language in the industry, has universality; XML-structured messages provide a unified method to describe and exchange independent structured data for applications. [0003] XML-structured messages include complex-structured XML messages and general-structured XML messages; complex-structured XML messages contain multiple message nodes with the same node name; general-structured XML messages do not contain messages with the same node name text node. [0004] However, in the existing technical solutions, in an XML message, each sub-mess...

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): G06F40/221
CPCG06F40/221
Inventor 张炎陈超刘永振
Owner CHINA UNIONPAY
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More