?
Solved

Need help reading xml document in vb.net

Posted on 2011-03-07
1
Medium Priority
?
226 Views
Last Modified: 2012-08-14
I currently have some code that works fine for reading an xmlresponse from a web call. The problem is that I need to read the nodes from bottom to top  instead of top down.

I currently do this:

 Dim MedNodes As XmlNodeList

                                'Now process the repeating nodes
                                MedNodes = XmlDoc.SelectNodes(RootNode)

                                'Spin through the nodes and create a list of patients for this org
                                For Each n As XmlNode In MedNodes
                                    If n.HasChildNodes Then
                                        For Each x As XmlNode In n.ChildNodes
                                            If x.Name.ToLower.Trim <> "number" Then
                                                Dim p As New Patient
                                                p.lstNodeValues = ProcessNode(x, lstMyThreadNodeData, MyVendor.Org)
                                                p.lstGlobalNodes = Me.lstMyThreadGlobalNodes
                                                lstPatients.Add(p)
                                            End If
                                        Next
                                    End If
                                Next




I need to not do next but start at bottom of n.childnodes.
0
Comment
Question by:rutledgj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
grossac earned 2000 total points
ID: 35058775
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question