Quantcast
Channel: SelectNodes with XPath ignoring cases in node names - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by mykhailovskyi for SelectNodes with XPath ignoring cases in node names

We may convert xml and our variables to lower case. string value = "aBc"; XmlNode xmlnode = xmldoc.SelectSingleNode(string.Format("/some/path/add[translate(@key, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',...

View Article



Answer by Dimitre Novatchev for SelectNodes with XPath ignoring cases in node...

Just use: *[translate(name(), 'APPLICATION', 'application')='application'] /forms/action/form/@uid This selects the wanted attribute correctly in all cases when the current (initial context) node has a...

View Article

Answer by Martin Honnen for SelectNodes with XPath ignoring cases in node names

If the root element is the only element where the case of letters can change then you should simply do e.g. XmlDocument doc = new XmlDocument(); doc.Load("input.xml"); XmlNode nodex=...

View Article

Answer by Gertjan Assies for SelectNodes with XPath ignoring cases in node names

First of all I want to mention that xml is case sensitive, so Application means something else then application, looks to me this should be fixed in the code that generates this xml but if you have no...

View Article

SelectNodes with XPath ignoring cases in node names

I have a problem similar to the question SelectNodes with XPath ignoring cases but in my case the uppercase/lowercase problem is in the node with the name 'application' (Sometimes is 'Application'...

View Article


Answer by Nico M for SelectNodes with XPath ignoring cases in node names

I found the easiest approach was to load the XML file as all lowercase and then just make sure that any subsequent XPath expressions were all lower-case.Example:var xmlDoc = new...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images