Populate ListView from XML file <p>I have the following sample XML file from which i need to poplutate a ListView. I've been playing for hours but I don't know the best way to go about it. I want to use Linq to achieve this but my knowledge is somewhat lacking. It is a Winforms c# project.</p> <pre><code>&lt;DMs&gt; &lt;dataModule&gt; &lt;DMC&gt;11111&lt;/DMC&gt; &lt;techName&gt;Test Techname 1&lt;/techName&gt; &lt;infoName&gt;info 1&lt;/infoName&gt; &lt;status&gt;complete&lt;/status&gt; &lt;notes&gt;Note 1&lt;/notes&gt; &lt;/dataModule&gt; &lt;dataModule&gt; &lt;DMC&gt;22222&lt;/DMC&gt; &lt;techName&gt;Test Techname 2&lt;/techName&gt; &lt;infoName&gt;info 2&lt;/infoName&gt; &lt;status&gt;in work&lt;/status&gt; &lt;notes&gt;Note 2&lt;/notes&gt; &lt;/dataModule&gt; &lt;dataModule&gt; &lt;DMC&gt;33333&lt;/DMC&gt; &lt;techName&gt;Test Techname 3&lt;/techName&gt; &lt;infoName&gt;info 3&lt;/infoName&gt; &lt;status&gt;QA required&lt;/status&gt; &lt;notes&gt;Note 3&lt;/notes&gt; &lt;/dataModule&gt; &lt;/DMs&gt; </code></pre> <p>I have the following very basic code which successfully populates the first column of the listview with the DMC element text, but i need the sibling elements (techName, infoname, status and notes) to populate the other columns of the listview.</p> <pre><code>XDocument doc = XDocument.Load(CSDBpath + projectName + "\\Data.xml"); var DMCs = from item in doc.Descendants("dataModule") select item.Element("DMC").Value; foreach (var dmc in DMCs) { ListViewItem item = new ListViewItem(dmc); listView1.Items.Add(item); } </code></pre>