Gather a list of elements

This short piece of code shows how to get all the nodes in an XML document with the same name and put them in an SMLNodeList
Dim xdoc As New XmlDocument
 
xdoc.Load(strFullName)
Dim nodelist As XmlNodeList = xdoc.GetElementsByTagName("taSopTrackingNum")
 
For Each node As XmlElement In nodelist
    Console.WriteLine(node("SOPNUMBE").InnerText)
Next

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences