[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Need help reading xml document in vb.net

Posted on 2011-03-07
1
Medium Priority
?
227 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

650 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