Hi.
My XML file does contain "node" element but my code prints nothing:
Code:string strPath = "./CarList.xml"; string strXpath; strXpath = "/Name"; XmlNodeList objNodeList; XmlDocument doc = new XmlDocument(); doc.Load( strPath ); objNodeList = doc.SelectNodes( "/name" ); foreach( XmlNode node in objNodeList ) { Console.WriteLine( "Here" ); }