beststopbargains
New Member
Below is my code . I am getting response of xml in responseElement and corredponding values.I want to know how can i check whether firstName/contactid node exist or not in following expression\[code\]var responseElement = XElement.Parse(putContactResponse);ObjInvoice.Contact_Id = responseElement.XPathSelectElement("//Contact/ContactID").Value;ObjInvoice.FirstName = responseElement.XPathSelectElement("//Contact/FirstName").Value;\[/code\]