I have XML file which has few nodes. Each node has "Name" attribute. I want to find an XML node based on the value of "Name" attribute. Below is the code that I have written but it is case sensitive.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(file);
XmlNodeList nodes = xmlDoc.SelectNodes(string.Format("/somevalue/someohtervalue/*[@name = '{0}']", Name));
How can I find the node irrespective of case?