I am developing a LAN messenger in c# using sockets, i want to use XML for entire communication, can you people help me? or give me some link or code snippet?
any help will be appreciated
thanks in advance
To transmit the data over the network, you still need to break it down into bytes. But the message you send can be in XML. I imagine you will be running a server, which communicates with all the clients? If not, that's going to be rather difficult to implement ^^ Read More
Perhaps something [url=http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx]like this[/url] can help. Says something about DTD also. Or are you not alowed to use such features? Read More
Well if you need to use XML as your "message" then how about something like this as your markup... [code] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ClientMessage> <SourceClientId>SomeIdHere</SourceClientId> <ClientCommand>Message</ClientCommand> <TargetClients> <Client>TargetClientOne</Client> <Client>TargetClientTwo</Client> </TargetClients> <Data>Whatever the message is here</Data> </ClientMessage> [/code] Obviously you would need a DTD that also matches this and the … Read More