问题
I want to develop decoder in .net C# for one binary file.
Can you please give me some directions (I know that question is general and not code specific)
So here is catch:
- There is XML schema (with syntax) for XML file
- XML file based on XML schema contains descriptions (names etc) of parameters and my encoded file have values for that parameters.
- There is also another XML for enumeration of some of values from binary file.
- So there is two XML file and one XML schema (Input to application will be only XML files and binary file)
EDIT:
Binary file have this format: HEADER, Event 1, Event N, Error X, Event N + 1, Event M, FOOTER
And XML file specifies how the information is structured in the binary files.
So, what is (known) technique or best practice for this kind of problem? DO you have any general instruction? Is there any classes (in .net or open source assemblies) for this kind of decoding etc.
BR
来源:https://stackoverflow.com/questions/15020696/c-sharp-binary-decoder-based-on-xml-specification