Parsing two consecutive records in XML file

tyncseectb0

New Member
I have an XML file:\[code\]<root type="service"> <Msg Date="03/23/2013 12:00:04 AM">Request'HANDSHAKE'</Msg> <Msg Date="03/23/2013 12:00:04 AM">Response'RSHANDSHAKE'</Msg> <Msg Date="03/23/2013 12:03:04 AM">Request'HANDSHAKE'</Msg> <Msg Date="03/23/2013 12:03:04 AM">Response'RSHANDSHAKE'</Msg> <Msg Date="03/23/2013 01:34:30 PM">Request 'IQ~bbabb3ff2-...DLE~VNECTRECVBDHANDLE'</Msg> <Msg Date="03/23/2013 01:34:30 PM">Response SIQ~7a23da12...RDHANDLE=O000000000014'</Msg></root>\[/code\]I have to parse the file and see whether every request is followed by a response. If there is no response, that indicates there was error. How can I do this in C# and preferably LINQ?
 
Top