Mega Code Archive
Categories
/
VB.Net
/
XML LINQ
Using Linq Xml to query attribute
Module Program Sub Main() Dim doc As XElement = XElement.Load("Inventory.xml") Dim ids = From c In doc.
Select c.@carID For Each id In ids Console.WriteLine(id) Next End Sub End Module