Solved

parse XML using VB.NET

Posted on 2013-01-29
3
685 Views
Last Modified: 2013-02-01
Can anyone tell me how to parse the attached XML using VB.NET?  I need to extract the lat and lng node values from the parent location node, that in turn has a parent node of geometry.
xxx.xml
0
Comment
Question by:HLRosenberger
[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
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38832777
0
 
LVL 13

Accepted Solution

by:
jonnidip earned 500 total points
ID: 38834309
The easiest way is to load it into a DataSet.
Here is a sample:
Dim ds As New DataSet()
ds.ReadXml("d:\xxx.xml")

Open in new window

You may find that the DataSet will contain as many DataTable objects as xml nodes.
You can then cycle tables to get your values.

Regards.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 38843856
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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