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

XML analysis module and method based on XML rule, and management method of configuration data

A technology for parsing modules and rules, applied in the field of communication, can solve problems such as long development cycle and many problems

Pending Publication Date: 2021-01-05
广州鲁邦通物联网科技股份有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, if any new application needs to access and manage the configuration data of the gateway, it needs to re-write the code to be able to access the configuration database, which leads to a long development cycle and many problems

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 analysis module and method based on XML rule, and management method of configuration data
  • XML analysis module and method based on XML rule, and management method of configuration data
  • XML analysis module and method based on XML rule, and management method of configuration data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] refer to figure 1 with 2 , an XML parsing module based on XML rules, including the following submodules:

[0028] Database model class sub-module: used to create a new sqlite database according to the XML configuration file, generate the database tables contained in the database, and establish the mapping relationship between the database model class and the database table;

[0029] The XML configuration file takes the following as an example:

[0030]

[0031] The configuration file specifies the serial number, interface type, IP address, subnet mask, and mtu configuration of the child nodes.

[0032] The database model class is equivalent to a table in the database. The definition of this table, such as which fields it contains, does not contain specific data, that is, if there is no object, the table is empty.

[0033] A class object is equivalent to a record in the table in the database, and there are 10 data records for 10 objects.

[0034] The above XML con...

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 belongs to the field of communication, and discloses an XML analysis module based on an XML rule. The analysis module comprises the following sub-modules: a database model class sub-module used for creating a new database according to an XML configuration file, generating a database table contained in the database, and establishing a mapping relationship between a database model class and the database table; a serialization class sub-module used for establishing a mapping relationship between a json object transmitted by a front end and the database model class; an interface class sub-module used for generating a restful interface according to the XML configuration file; and a page routing rule generation sub-module used for generating a page routing rule for restful interface registration according to the XML configuration file.

Description

technical field [0001] The invention relates to the communication field, in particular to an XML parsing module, parsing method and configuration data management method based on XML rules. Background technique [0002] In an IoT usage environment, gateway products usually include communication and network functions, as well as various IoT applications, which usually require configuration management. [0003] In the prior art, if any new application needs to access and manage the configuration data of the gateway, it needs to re-write the code to be able to access the configuration database, which leads to a long development cycle and many problems. Contents of the invention [0004] The object of the present invention is to provide a XML parsing module based on XML rules, a parsing method, and a management method for configuration data. The module automatically generates database tables, database model classes, database model classes, and database tables by parsing based o...

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): G06F16/84G06F16/21G06F16/25G06F8/41G06F8/38
CPCG06F16/86G06F16/21G06F16/252G06F8/427G06F8/38
Inventor 赵伟黄章良陶洋陈小军
Owner 广州鲁邦通物联网科技股份有限公司