|
-
December 21st, 2009, 02:48 AM
#1
how to send xml over sockets
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?
-
December 21st, 2009, 11:43 AM
#2
Re: how to send xml over sockets
Since XML is character based, there is no byte ordering problem since bytes are bytes in either bigendian or littleendian systems.
-
December 22nd, 2009, 07:07 AM
#3
Re: how to send xml over sockets
Yes! I know that XML is character base ...
But how to exchange it via sockets written in C/C++
Thanks for the reply
-
December 22nd, 2009, 10:05 AM
#4
Re: how to send xml over sockets
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.
-
December 22nd, 2009, 03:30 PM
#5
Re: how to send xml over sockets
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
Last edited by apollo135; December 24th, 2009 at 05:11 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|