SKL system file format conversion method and system
A format conversion and system file technology, applied in the Internet field, can solve the problems of long processing time, prone to errors, time-consuming and labor-intensive, etc., to achieve the effect of convenient and reliable accuracy, improve the efficiency of format conversion, and reduce costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] A kind of SKL system file format conversion method, such as figure 1 shown, including the following steps:
[0022] S1. The original file includes txt format file and XML format file, judge whether the format of the original file meets the requirements of the SKL system, if the original file is txt, it can be directly output without conversion, if it does not meet the SKL system, enter S2. In this embodiment, the original file format is XML format, and the file in the format that the SKL system can recognize is a txt format file or a CSV format file. But it can also be used for conversion between other files.
[0023] S2. Arranging the data in the original file into a tree-like relational diagram. Such as figure 2 As shown, the process of arranging the data in the original file into a tree-like relational graph is:
[0024] S2.1 Acquire data, each data includes two codes, one is the first code representing itself, and the other is the second code representing the d...
Embodiment 2
[0033] In this embodiment, the technical solution is basically the same as in Embodiment 1, the difference is that:
[0034] Such as image 3 As shown, the method of arranging the data in the original file into a tree-like relational graph is:
[0035] Pass the loaded original file through the cleaning module to filter out the special characters in the original file.
[0036] S3.1 divides the original file into several data nodes, and distinguishes the first-level nodes.
[0037] S3.2 Distinguish the sub-nodes of one of the first-level nodes by regular expressions, and obtain the node tree of the first-level nodes;
[0038] The method to obtain the node tree of the first level node is:
[0039] S3.2.1 Divide child nodes into self-closing child nodes and non-self-closing child nodes;
[0040] S3.2.2 Recursively screen all sub-nodes, and judge whether the sub-node is a self-closing sub-node. Mark the identifier after the node. When recursive filtering is performed, if the ide...
Embodiment 3
[0047] Based on the same inventive concept, this embodiment discloses a SKL system file format conversion system, such as Figure 4 shown, including:
[0048] Judgment module, used to judge whether the format of the original file meets the requirements of the SKL system, if it does not meet the requirements of the SKL system, enter the tree relationship module;
[0049] A tree-like relationship module, used to arrange the data in the original file into a tree-like relationship diagram;
[0050] The parsing conversion module is used to generate the original format file template and the converted format file template, respectively establish the first corresponding relationship and the second corresponding relationship between the original format file template and the converted format file template and the tree relationship diagram; according to the first The corresponding relationship and the second corresponding relationship generate the third corresponding relationship betwee...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


