Yes, there is another way, via using
XDocument class[
^].
string sloc = "http://192.168.6.22/Conditions.aspx";
XDocument xdoc = XDocument.Load("fullfilename.xml");
XNamespace xnsp = "http://www.sitemaps.org/schemas/sitemap/0.9";
var qry = xdoc.Descendants(xnsp + "loc")
.Where(a=>(string)a==sloc);
If you want to get result using XPath class, please refer this:
Select Nodes Using XPath Navigation[
^]
Try!