reading xml with linq (c#)

dannyfilth

New Member
how do I read the following xml document?My code is :\[code\]var vb = (from vbs in XMLDoc.Descendants("Response").Descendants("Records ") select new { ref = vbs.Element("ref").Value }).ToList();\[/code\]XML Document: \[code\]<Response> <Msg> <Code>30</Code> <Query/> </Msg><Rec> <Records price="1989" no="838976" ref="1927A64FF6B03527E5BFD8424F647848005143DB" query="00"/></Rec></Response>\[/code\]
 
Back
Top