Byte array to string / XML

  • Thread starter Thread starter Markus Freitag
  • Start date Start date
M

Markus Freitag

Guest
Hello,


Coming soon.


<STX>Group<EOT>Element1<EOT>Element2<EOT>Element2 .... <EOT>ElementN<EOT>

<ROOTOBJECT><COUNTER><NAME value="CounterReceiver" /><LASTDATE value="23042020" />

<LENGTH value="5" /><STARTVALUE value="916" /></COUNTER></ROOTOBJECT><ETX>



An XML structure is sent between the elements. How would you read it out?
What if it's transmitted in two blocks?
I think looking first for STX and ETX, then split with character (byte)0x4
Read the xml substring to XDocument or XElement.
What's your approach? Thanks in advance.
With best regards Markus

Continue reading...
 
Back
Top