The data is directly received from the socket. The problem is that each message has a different structure and its own root node.
OK, I can't deserialize multiple root nodes, but I can detect a full message and parse the single message.
At the moment of deserialization you have to specify the type of the target object.
XmlSerializer xs = new XmlSerializer(t ypeof(customer) );
Since this can be multiple...
User Profile
Collapse
-
Deserialize multiple XML documents
Hi All,
I have a TCP Client which reads the data from the socket. Now I have to deserialize the received data. The data can contain multiple XML documents like :
<customer field="value">
<address>road 11<address/>
<customer/>
<supplier>
<goods>printers <goods/>
<supplier/>
In this case I want to deserialize...
No activity results to display
Show More
Leave a comment: