hello all,
I have a webservice that returns this XML
<UpdateSalesHeaderResponse xmlns="http://tempuri.org/">
<UpdateSalesHeaderResult>true</UpdateSalesHeaderResult>
</UpdateSalesHeaderResponse>
How can i get the value of UpdateSalesHeaderResult tag?
I currently do this:
XmlDocument doc = new XmlDocument();
doc.Load("http://localhost/xxxxx/Service1.svc/xxxxxx");
if (doc.SelectSingleNode("//UpdateSalesHeaderResult").InnerText == "true")
{
}
else
{
}
the error says :"Object reference not set to an instance of an object." at this point doc.SelectSingleNode("//UpdateSalesHeaderResult").InnerText