Hi
Could someone please help and tell me if there is a possibility to pass an xml schema through a socket program written in C/C++ ? here is an example:
---- c/C++ ----
...
struct zone { // as an example
char *Var_name="xxx";
float var_value = 1.3;
};
----- xml ---
...
<xs:element name="zone">
<xs:complexType>
<xs:sequence>
<xs:element name="Var_name" type="xs:string"/>
<xs:element name="var_value" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
</xs:element>
------ C/C++ ----
...
// send message to server
if (send(csocket, buffer_snd, BUFSIZE, 0) > BUFSIZE)
cout << send() failed << endl;
...
Is this the way to exchange data as XML to avoid endianness when communicating between program running on Unix and other on Windows?
Thanking you in advance for your replies,