I need help using with an XML document in my C# application.
Posted on 2009-04-09
I have written a C#.Net application that consumes a web service that returns an XML document. When it returns the document I populate my form. This is working fine. But there are times that it returns the following error:
<?xml version="1.0" ?><XMLGetCustomerShipmentDetailError>No records found per requested criteria</XMLGetCustomerShipmentDetailError>
Is there anyway to tell my application that if the element <XMLGetCustomerShipmentDetailError> is found then exit the function? How can I do this? If you could provide a code sample that would be great.
thanks in advance,