I would like to search node via Xpath case insensitve.
<Validation>
<Presentation>
<Slide Tag= "Test">
<FontSize Value = "36"/>
</Slide>
</Presentation>
</Validation>
I've used this code
String xPath = string.Format("/Validation/Presentation/Slide[lower-case(@Tag)='{0}'][1]", "test");
XmlNode node = doc.DocumentElement.SelectSingleNode(xPath);
but it throws an XPath Exceptions: Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function. Where did I go wrong?