Imports System.XmlImports System.Xml.XPathDim m_xmld As XmlDocumentDim m_nodelist As XmlNodeListDim m_node As XmlElement'Create the XML Documentm_xmld = New XmlDocument()'Load the Xml filem_xmld.Load("sample2.xml")'' Added these two linesDim nsmgr = New XmlNamespaceManager(m_xmld.NameTable)nsmgr.AddNamespace("ns", "http://www.metaswitch.com/cfs/billing/V1.0")'Get the list of name nodes'' Modified your XPath and added the second parameter m_nodelist = m_xmld.SelectNodes("/ns:File/ns:CDRs/ns:Call", nsmgr)'Loop through the nodesMsgBox(m_nodelist.Count)