posted 13 years ago
Hi,
Currently my program code is listening to TCP port and I will be receiviing XML data and the data will be save to a file.
The issue is that the XML data contains the respond data from the server whenever it send back to the client, how can I get rid of the respond data.
Example,
respond=ok;blah blah
<xml>
......
......
</xml>
if there are two responds... it will be
respond=ok;blah blah
<xml>
......
......
</xml>
respond=ok;blah blah
<xml>
......
......
</xml>
So I do not want to write the "respond=ok;blah blah" to the xml file. Because once I write that to a file, it will not be in a XML format. Please advice on how can I read the XML data from the TCP port correctly and save it to a file. Thanks.