I have the following xml file
1
Computer
Infor
You can use LINQ to XML like
XDocument xDoc = XDocument.Load("test.XML");
var item = xDoc.Descendants("category")
.FirstOrDefault(r => r.Element("id").Value == "1");
if(item == null)
return;
string Name = item.Element("name").Value;
string Decription = item.Element("description").Value;
string active = item.Element("active").Value;
You can assign the results to your TextBoxes as per your requirement.