Question : SelectSingleNode question

Label1.Text = xmlnode.SelectSingleNode("head").SelectSingleNode("title").InnerText

this gives an error when Node doesnt exist. With what "IF"-function can i prevent this error? i think something with .lenth .. but i'm not sure.
Thanks in advanced

Answer : SelectSingleNode question

Random Solutions  
 
programming4us programming4us