- <BusDetails>
- <BusName>Bus001</BusName>
- <BusID>AN-101</BusID>
- <BUSNumber>22490</BUSNumber>
- <Buskey>ABCD-EFGH</Buskey>
- <SeatDetails waittime=600>
- <SeatDetail>
- <Type>Economy</Type>
- <SeatNumber>A-01</SeatNumber>
- <SeatReservedFor>None</SeatReservedFor>
- </SeatDetail>
- <SeatDetail>
- <Type>Business</Type>
- <SeatNumber>B-01</SeatNumber>
- <SeatReservedFor>None</SeatReservedFor>
- </SeatDetail>
- <SeatDetail>
- <Type>Other</Type>
- <SeatNumber>C-01</SeatNumber>
- <SeatReservedFor>VIP</SeatReservedFor>
- </SeatDetail>
- .........
- </SeatDetails>
- </BusDetails>
i want to parse or deserialize this xml into c# object, to use this data in program.
what will be the best way to do this?