Solved

Need help reading xml document in vb.net

Posted on 2011-03-07
1
225 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 500 total points
ID: 35058775
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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 …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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