public static string GetSearchStatusCode(SendStringResponse response)
{
string xmlResponse = response.ResponseDataXML;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlResponse);
XmlNamespaceManager xmlNameSpaceManager = new XmlNamespaceManager(doc.NameTable);
xmlNameSpaceManager.AddNamespace("e", "Search");
XmlNode status = doc.SelectSingleNode("/e:Search/e:Response/e:Store/e:Status", xmlNameSpaceManager);
if (status != null)
{
return status.InnerText;
}
else
{
return null;
}
}