Yes; it is not supported, neither here nor in XmlDocument. Perhaps repeat the operation manually over //span[@id]?
foreach (var node in from HtmlNode n in doc.DocumentNode.SelectNodes(@"//span[@id]")
where n.GetAttributeValue("id","").EndsWith("Label2")
select n)
{
Console.WriteLine(node.OuterHtml);
}
source
share