my XML is single like
<linkToFooterRepository>1054</linkToFooterRepository>
<linkToTopNavRepository>1188</linkToTopNavRepository>
<author>1413</author>
and then i have
var xmlListItems = xPathNavigator.Select(xPathChildren)
.Cast<XPathNavigator>()
.OrderByDescending(x =>
{
var xmlNode = x.SelectSingleNode("author=1413");
})
.Skip(pager.CurrentPageIndex * pager.PageSize)
.Take(pager.PageSize);
I keep getting a Expression must evaluate to a node set error. I'm pretty new to Xpath so I think something with how I pass author is getting this error. In time I plan on making the author ID (1413) into a variable to use with many authors.
thanks