i hope this is a simple question!
in the following code all is well if the element exists but if not it errors out. XDocument xmldoc = new XDocument();
xmldoc = XDocument.Parse(response);
XElement errorNode = xmldoc.Root.Element("TransactionErrorCode").Element("Code");
How can i test to see if it exists so it doesnt trow an error?