Using Linq Xml to query attribute : XAttribute « XML LINQ « VB.Net
- VB.Net
- XML LINQ
- XAttribute
Using Linq Xml to query attribute
Module Program
Sub Main()
Dim doc As XElement = XElement.Load("Inventory.xml")
Dim ids = From c In doc.<Car> Select c.@carID
For Each id In ids
Console.WriteLine(id)
Next
End Sub
End Module
Related examples in the same category