System.Convert.ToInt32(xpath(Response_Select_Query,”count(copy xpath from schema and paste here)”));
———————————————-OR———————————————————————————
theStringValue = xpath(inputMessage, “string(//*[local-name()=’MyElementName’])”);
from the following link
And now you can use System.String.IsNullOrEmpty(theStringValue) to check if the value is present.