Anonymous user
XML/Input: Difference between revisions
→{{header|Visual Basic .NET}}
(New page: {{task}} Given the below XML fragment, extract the list of names. <Students> <Student Name="April" /> <Student Name="Bob" /> <Student Name="Chad" /> <Student Name="Dave" /> ...) |
|||
Line 21:
</Students>
Dim names = (From node In xml...<Student> Select node.@Name).ToArray
For Each name In names
Console.WriteLine(name)
|