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

A method to add validation in xml configuration file

A configuration file and file technology, applied in the field of verification XML (eXended Mark Language), can solve problems such as low reliability, inability to guarantee the correctness and availability of XML configuration files, and inability to ensure the correctness of file content, etc., to improve reliability Effect

Active Publication Date: 2015-09-02
CSR ZHUZHOU ELECTRIC LOCOMOTIVE RES INST
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] At present, there is no method for checking the integrity of XML configuration files, and it is relatively simple to judge whether the file format is correct, and it cannot ensure that the file content is correct.
For example: modifying the element attribute value in the XML file at will will not change the file structure. In this case, the result of judging the file format is still correct, so the reliability of this method is not high, and the XML configuration file cannot be guaranteed. correctness and usability

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
  • A method to add validation in xml configuration file
  • A method to add validation in xml configuration file
  • A method to add validation in xml configuration file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0043] as attached figure 2 to attach Figure 4 As shown, a specific embodiment of a method for adding verification in an XML configuration file of the present invention is given, and the present invention will be further described below in conjunction with the drawings and specific embodiments.

[0044] as attached figure 2 And attached image 3 A specific implementation of the method for adding verification in the XML configuration file includes ...

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 check adding method into an XML configuration file. The method includes adding a check element into an original XML configuration file to obtain a new XML configuration file; replacing the original XML configuration file with the new XML configuration file with the check element; and checking the new XML configuration file before use, reading the check element information in the new XML configuration file, recomputing a checksum of the new XML configuration file, comparing the computed check with the read check information to check whether the two are in accordance so as to guarantee the correctness of the XML configuration file. According to the method, the original XML configuration file structure cannot be destroyed through adding the check element into the XML configuration file, program running is not affected, accident file modification can be discovered timely, illegal XML configuration files can be prevented from beings used, and the reliability of the system can be improved.

Description

technical field [0001] The present invention relates to a method for verifying XML (eXended Mark Language, Extensible Markup Language) configuration files, in particular to a method for adding verification to XML configuration files, especially CRC (Cyclic Redundancy Check, Cyclic Redundancy Check) ) method of verification. Background technique [0002] The XML language is Extensible Markup Language (Extensible Markup Language), which is a common markup language, similar to HTML. The XML language is mainly used to mark electronic documents to make them structural markup languages. It can be used to mark data and define data types. It is a source language that allows users to define their own markup languages. An element is the most basic unit of XML, which consists of start tags, attributes and end tags. For example: <elementName att1Name="att1Value"> is an example of an element. Each element must have an element name, and an element can have several attributes and ...

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/30G06F11/10
Inventor 刘永阳肖家博杨卫峰
Owner CSR ZHUZHOU ELECTRIC LOCOMOTIVE RES INST