How to read xml attribute values into c# list

  • Thread starter Thread starter Learning Rocks
  • Start date Start date
L

Learning Rocks

Guest
Hello Everyone,

I have a xml data with below code

<RESULT>
<OperationsRow>
<Name>John</Name>
<Id>XYV10572</Id>
<OperationDate>2020-04-14T13:25:41</OperationDate>
<OperationDetails>welcome to the world</OperationDetails>
<OperationDesc>ABCDEF</OperationDesc>
</OperationsRow>

<OperationsRow>
<Name>Kennedy</Name>
<Id>XYM54572</Id>
<OperationDate>2018-04-14T13:11:41</OperationDate>
<OperationDetails>welcome to Newyork</OperationDetails>
<OperationDesc>ZYX</OperationDesc>
</OperationsRow>
</RESULT>



How to read this xml attribute values into the list of operations(List) with c# linq

pls help me here.

Thanks

Continue reading...
 
Back
Top