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

XML (extensible markup language) message processing method and XML message processing device

A message processing and message technology, applied in the field of information processing, can solve the problems of difficult maintenance, increase in the amount of parsing program code, expandability of the parsing program, and low generality, etc., to achieve strong scalability and easy maintenance. Effect

Inactive Publication Date: 2014-09-03
SHENZHEN COSHIP ELECTRONICS CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, with the expansion of business logic, there will be more and more business interfaces, and the code volume of the parsing program will also increase exponentially, making it difficult to maintain
And every time an interface is added or modified, it is necessary to add or modify the code of the analysis program, and the scalability and versatility of the analysis program are not strong

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
  • XML (extensible markup language) message processing method and XML message processing device
  • XML (extensible markup language) message processing method and XML message processing device
  • XML (extensible markup language) message processing method and XML message processing device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0070] see figure 1 , which is a flow chart of the first embodiment of the XML message processing method provided by the embodiment of the present invention, including:

[0071] S101. Receive an XML message, and acquire an interface identifier according to the XML message, where the interface identifier is a unique identifier of the interface.

[0072] The method provided by the embodiment of the present invention can be applied to a service processing system for parsing an XML message or an XML document, and can also be applied independently. Usually, an interface protocol is agreed between the XML message sender and the XML message receiver or the service caller and the service provider, which is used to define the fields (nodes), data structure, format and other information contained in the interface. The two parties exchange data through the agreed interface information. In the embodiment of the present invention, a unique identifier is provided for each interface, which...

no. 2 example

[0079] see figure 2 , which is a flow chart of the second embodiment of the XML message processing method provided by the embodiment of the present invention, including:

[0080] S201. Receive an XML message, and acquire an interface identifier according to the XML message, where the interface identifier is a unique identifier of the interface.

[0081] S202. Obtain node configuration information corresponding to the interface identifier according to the pre-stored correspondence between the interface identifier and node configuration information.

[0082]In the embodiment of the present invention, the node configuration information of the interface is stored in advance. The node configuration information of the interface can be saved in the form of a configuration file or in a database. Since the interface protocol is agreed upon by the service caller and the service provider, it is generally not easily modified. In order to improve the processing performance of the system...

no. 3 example

[0121] see image 3 , which is a flow chart of the third embodiment of the XML message processing method provided by the embodiment of the present invention, including:

[0122] S301. Receive an XML message, and acquire an interface identifier according to the XML message, where the interface identifier is a unique identifier of the interface.

[0123] S302. Obtain node configuration information corresponding to the interface identifier according to the prestored correspondence between the interface identifier and node configuration information.

[0124] In this step, after the interface identifier of the message is obtained, the node configuration information corresponding to the interface identifier is taken out. Specific to the example in Table 1, 9 pieces of configuration information whose interface ID is 01 are taken out.

[0125] S303. Obtain a root node according to the node configuration information, and use the root node as a current node.

[0126] In the third emb...

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 relates to the technical field of information processing, in particular to an XML (extensible markup language) message processing method and an XML message processing device. The method includes: receiving XML messages, and acquiring interface identification according to the XML messages, wherein the interface identification is the unique identification of interfaces; acquiring node configuration information corresponding to the interface identification according to the correspondence relation between the preset interface identification and node configuration information, and analyzing the XML messages according to the node configuration information. A universal analysis program is abstractly extracted, different fields / nodes are defined aiming at different interfaces, and node information contained in the interfaces is stored in a way same as storing node configuration information, so that a universal analysis method can be provided aiming at messages of different interfaces, maintenance is easy, and extensibility is high.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to an XML message processing method and device. Background technique [0002] XML (Extensible Markup Language, Extensible Markup Language) is a standard general-purpose markup language that can use a series of simple tags to describe data, and is currently a powerful tool for processing structured document information. XML provides a unified method for describing and exchanging structured data, can be used across platforms, and is especially suitable for distributed networks such as the Internet. Because of its simple, convenient, universal and powerful label description features, it is easy to read and write data in various applications, especially when using XML language to describe business logic, it can be easily deployed on application servers. [0003] The methods for parsing XML messages in the prior art mainly include SAX (Simple API for XML, an event-driven ...

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): G06F17/30
Inventor 朱威
Owner SHENZHEN COSHIP ELECTRONICS CO LTD
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