79709913

Date: 2025-07-22 05:21:15
Score: 0.5
Natty:
Report link
// From xml file use .Load
XDocument x = XDocument.Parse(xml);

var result = x.Descendants().Where(x => x.Attribute("Name")?.Value.ToLower() == "myvalue");

foreach (XElement el in result)
{
    Console.WriteLine(el.Attribute("Name").Value);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Patrik Spišák