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

Data format requirements storage method and device

A format and data technology, which is applied in the field of data format requirements storage methods and devices, can solve the problems of narrow application scope of storage methods, etc., and achieve the effect of easy understanding and wide application scope.

Active Publication Date: 2021-02-19
BEIJING 58 INFORMATION TECH
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a data format requirement storage method and device to solve the problem of narrow application range of existing storage methods

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
  • Data format requirements storage method and device
  • Data format requirements storage method and device
  • Data format requirements storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. 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.

[0036] The storage of data format requirements in the prior art is to store the data format requirements in an XML file, use the same dictionary as the data structure to be tested for storage, and store the data format requirements as attributes or child nodes of XML nodes. Take the following piece of data as an example for the data to be tested:

[0037] {"action":"sms","phonenum":"180...

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 provides a data format requirement storage method and device. The method includes: parsing the data segment required by the storage format to obtain a plurality of fields, and storing the format requirement of the data segment in an XML file according to the structure of the plurality of fields, wherein: the root node of the XML file is a dictionary type, and the The key value is the preset first identifier, each node under the root node corresponds to a format requirement of a data segment, and the format requirement of the data segment is stored in the form of a dictionary structure. The format of the data segment requires that the corresponding dictionary structure corresponds to the fields of the data segment. In the dictionary structure, there is an intermediate node between each node and the child nodes under the node, and the key value of the intermediate node is the field of each field The identifier corresponding to the type. Therefore, the format requirements of the data segment can be stored in the file in a fixed form, and complex format requirements can also be well stored, and the application range is wide.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a data format requirement storage method and device. Background technique [0002] A hybrid mobile application (Hybrid APP) is a hybrid mobile application that combines a web application (Web app) and a localized application (Native app). functions (or Native calls Web functions), and some protocols with fixed data formats are usually defined between Web and Native. When the Web end calls Native functions, when the Web end assembles these protocols, if there is a format error, Native will not respond. You need to find the cause of the problem, and it is troublesome to find the cause of the problem. Therefore it is necessary to design a set of devices that can automatically check the protocol data format, and the key point of the automatic check protocol data format device is how to store the format requirements information of the data, and make it easy for the machine to ...

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/13
Inventor 杜艳新
Owner BEIJING 58 INFORMATION TECH