Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
Imports System.Xml Imports System.Xml.XPath Dim m_xmld As XmlDocument Dim m_nodelist As XmlNodeList Dim m_node As XmlElement 'Create the XML Document m_xmld = New XmlDocument() 'Load the Xml file m_xmld.Load("sample2.xml") '' Added these two lines Dim 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 nodes
Join the community of 500,000 technology professionals and ask your questions.