Binary file generation method based on xml input file
The invention discloses a binary file generation method based on an xml input file, and relates to the technical field of urban rail transit signal systems. According to the method, the input file format check is encapsulated in xsd check, so that the code quantity for checking the input file format...
Gespeichert in:
Hauptverfasser: | , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a binary file generation method based on an xml input file, and relates to the technical field of urban rail transit signal systems. According to the method, the input file format check is encapsulated in xsd check, so that the code quantity for checking the input file format by means of a tool source code is greatly reduced; the method comprises the following steps: reading xml file data through an xml Reader object to obtain a node attribute value, and obtaining child node object data of a node through a deserialization technology so as to analyze input file data. By means of the method, input file analysis is achieved without depending on a tool B, and the independence of input file analysis can be achieved; data to be output are obtained by performing logical operation on original data obtained after analysis, each data variable to be output is converted into a byte array with a predefined length by calling an own byte array conversion method, and finally the byte array is converte |
---|