Hello all, Do anyone have any idea of what this Exception in occuring when i try to remove the elements in XML using XmlNodeList. It occurs in following section :

XmlNodeList nodeLst = xmlDoc.GetElementsByTagName("FileName");
 foreach (XmlNode node [B]in[/B] nodeLst)
 {
//code
}

pl help ???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.