I have a xml file\[code\]<config> <email Host="201.175.0.0" From="[email protected]" Pass="xxx" Name="NameT"/> <combo/> <list sex="female"/></config>\[/code\]How can I assign the value of the attributes to variables in vb.net?I was doing \[code\]Dim doc As XmlDocument = New XmlDocument()doc.Load("Test.xml")Dim Host = doc.DocumentElement.Attributes.ItemOf("Host").InnerTextDim From = doc.DocumentElement.Attributes.ItemOf("From").InnerTextDim Pass = doc.DocumentElement.Attributes.ItemOf("Pass").InnerTextDim Name = doc.DocumentElement.Attributes.ItemOf("Name").InnerText\[/code\]Is this correct, what would be a better approach?