HI,
I found on the net that when exchanging data program running on windows and another on Unix, XML can be used to avoid endlessness. Does anyone please explain with an example, how?
Printable View
HI,
I found on the net that when exchanging data program running on windows and another on Unix, XML can be used to avoid endlessness. Does anyone please explain with an example, how?
Since XML is character based, there is no byte ordering problem since bytes are bytes in either bigendian or littleendian systems.
Yes! I know that XML is character base ...
But how to exchange it via sockets written in C/C++
Thanks for the reply
I'm not sure what it is you are asking for. The sockets don't care what kind of data you are exchanging. Sockets handle byte streams and don't care whether it's XML or a JPEG file; it's all bytes to the socket.
thanks for your reply...
probably you are talking about the file. the problem is not when exchanging a file but when exchange XML as a struct / class
E.G. when we exchange struct between program running on Unix and other on Windows, we have to take care of padding, byte alignment and ordering, and endianness issues , right!
So instead of sending struct() function, we can to send an XML schema , according to some information on the net. As there is no details about, I would appreciate if you could describe how?
Thanks