Vote count:
0
I have the task to write a reader for a file format with the following specification:
- First section is plain xml with metadata (utf-8);
- Last section is a stream of 16bit values (binary);
- These two sections are separated by one byte with value
29(group separator in the ASCII table).
I see two ways to read the xml part of the file. The first one is to build a string byte by byte until I find the separator.
The other is to use some library that would parse the xml and automatically detect the end of well-formed xml.
The question is: is there any .NET library that would stop automatically after the last closing tag in the XML?
(or, can anyone suggest a saner way to read this kind of file format?)
asked 1 min ago
How to read XML data from the header of a mixed xml/binary file in C#
Aucun commentaire:
Enregistrer un commentaire