2,892 questions
don't know vb, but in C# it would be:
var MyResult = MyXDocument.Root
.Elements(MyXSpace + "category")
.Select(c => new List<string>
{
c.Attribute("name").Value,
c.Attribute("color").Value
})
.ToList();