Hy everybody
Is there a way to get the node name knowing only a part of it, I have multiple xml's but the node name is with different cases, for example one of it has the nodename "Price" and the other price>
Is there a way to make this case insensitive or to use wildcards with the tag name xmldoc.GetElementsByTagName("*ice");
Then I want to convert the value to a string.
Thank you very much for your time.
Suthish NairPosted Feb 27, 2011, 11:53 AM
Suthish NairPosted Feb 23, 2011, 3:28 PM
soso blakePosted Feb 23, 2011, 2:11 PM
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("prices.xml");
XmlNodeList price = xmldoc.GetElementsByTagName("Price");
string getprice = (price[0].InnerText);