Where do I begin...
1. Don't concatenate HTML for your labels. Have your label simply accept a textual value, let the <tr><td> markup be ready for it around the label.
2. If you only want one value out of some XML and don't need the rest of your node list, then use .SelectSingleNode rather than SelectNodes. There isn't a point to loading an entire node list if you need just one value.
3. Check if the node is Null/Nothing before you attempt to read its .Value/.InnerText.Code:Dim phoneNode As XmlNode = doc.SelectSingleNode("/Root/PHONENUMBER[1]")





Reply With Quote