does node exist?

VB Code: For Each nod As XmlNode In xmle.SelectSingleNode("/pcBackup/username[@name=""" + strUserName + """]")
error here when the username does not exist. how can i test for it first
do i have to loop if i know there is only one username = "me"
there could be several under username.
Posted On: Saturday 3rd of November 2012 12:49:36 PM Total Views:  255
View Complete with Replies