Hello dear Stackoverflow community
I'm currently working on a client-server application and I'd like to use XML for the protocol. Now, I'm rather unsure about declaring the XML namespaces and creating XML schemas.
Needless to say that server and client send different things, i.e. the client sends requests and the server responds to them, and therefore use different tags and so on. The thing both sides have in common is that the XML data being sent is stream-like and the document's root is called <stream>
, but - as I said - the tags in are different (each standing for a request or response respectively).
Now, are these two different XM languages? Shall I declare one namespace (and thus one XSD) for each of them? Or shall I use one for all and add an attribute "sender" to defining the side (server | client)? In the latter case: How do I differentiate between the attribute values then? That is, how to declare in the XSD which tag is allowed for what "sender" value?
Thanks in advance!