Reputation: 1332
How to call XmlReader.ReadToFollowing in case insensitive mode?
xml source can not be changed.
"settings" in XML can be: "SETTINGS","Settings" etc
using(StringReader stringReader = new StringReader(xml))
{
using (XmlReader reader = XmlReader.Create(stringReader))
{
while (reader.ReadToFollowing("settings"))
Upvotes: 0
Views: 289
Reputation: 1113
Are you going to be reading a very large amount of data? If the answer is no then I think that LINQ to XML (XDocument) would be much easier for you to use rather than XMLReader.
//Karl-Henrik
Upvotes: 1