Quantcast
Channel: Using LINQ to XML how can I group element on the basis of its value? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Martin Honnen for Using LINQ to XML how can I group element on the...

Try along the following lines:var groups = from record in xmldoc.Descendants("record") group record by (string)record.Element("collection") into g select new { key = g.Key, count = g.Count() }foreach...

View Article


Using LINQ to XML how can I group element on the basis of its value?

Below is the structure of my xml file:<adlibXML><recordList><record priref="1"...

View Article
Browsing all 2 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>