|
-
Jun 23rd, 2010, 06:02 AM
#7
Thread Starter
Lively Member
Re: Help with reading an XML-Type File
 Originally Posted by Spirited Machine
Code:
Dim xml_doc as New XmlDocument
xml_doc.Load(filepath)
Dim root as XmlElement = xml_doc.DocumentElement
root would be the top-level node. Called "gpx" in your example file.
root.ChildNodes(0) would be the "name" node, etc. root.ChildNodes(0).innertext would return "Cache Listing Generated from Geocaching.com"
root.childnodes(8).Attributes(0).Value would return the minlat value, and so on.
Using that format, you can get the info you need. I'm guessing the Latitude, Longitude, name, etc.
Is there a chart/page or something online that I could look at to get a better feel for how that works? I know that this is something that is taught in school, but I dont have the time or the money to go that direction.
So I am home schooled. (haha home schooled at 44 years old......)
Thanks,
Richard - 
--------
-->Newbie Coder<<--
Using VB.NET 2008/.NET 2.0/3.5
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|