C# Binary Decoder based on XML specification

梦想与她 提交于 2019-12-25 02:37:35

问题


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:

  1. There is XML schema (with syntax) for XML file
  2. XML file based on XML schema contains descriptions (names etc) of parameters and my encoded file have values for that parameters.
  3. There is also another XML for enumeration of some of values from binary file.
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!