you can read your xml with LINQ:
vb Code:
Dim xml As XDocument = XDocument.Parse(IO.File.ReadAllText("xml3.txt"))
Dim values = (From item In xml...<way> _
Select New With { _
.id = item.Attribute("id").Value, _
.refs = (From a In item...<nd>.Attributes("ref") _
Select a.Value).ToArray, _
.k = (From a In item...<tag>.Attributes("k") _
Select a.Value).ToArray, _
.v = (From a In item...<tag>.Attributes("v") _
Select a.Value).ToArray}).ToList
For Each v In values
Debug.Print(v.id & Environment.NewLine & String.Join(",", v.refs) & Environment.NewLine & String.Join(",", v.k) & Environment.NewLine & String.Join(",", v.v) & Environment.NewLine)
Next