LINQ to XML 重複を避けて複数アイテムを取得し、並び替える
Dim query = From c In xmlDoc.Descendants("item") Where c.@type = "msw" _ Select base = c.@id, mswType = c.@type Distinct Order By mswType, base For Each c In q2 Console.WriteLine(c.mswType & " _ " & c.base) Next
Dim query = From c In xmlDoc.Descendants("item") Where c.@type = "msw" _ Select base = c.@id, mswType = c.@type Distinct Order By mswType, base For Each c In q2 Console.WriteLine(c.mswType & " _ " & c.base) Next