c# xml error: Object reference not set to an instance of an object.
- by every_answer_gets_a_point
here's my code:
foreach (string c in colorList)
{
doc.Load(@"http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" + c + @"&username=user&password=pass");
textBox1.Text += doc.SelectSingleNode("WhoisRecord/registrant/email").InnerText + ",";
}
for the second line of code (textbox1...) is generating this error
what am i doing wrong?