Articles
FAQs
Login
All Questions
New Question
ASP.NET - Check a particular node exist in Xml
Asked By
Myla Rajani
on 15-Jun-12 03:26 AM
Jitendra Faye
replied to
Myla Rajani
on 15-Jun-12 04:51 AM
Use this code to get node from xml file-
XmlDocument doc = new XmlDocument();
doc.Load("Filename.xml");
XmlNodeList nodeList = doc.GetElementsByTagName("NOdename");
foreach (XmlNode node in nodeList )
{
//Your code
}
Try this and let me know.