NoCoolHandle
Programmer
Ok..
My limited understanding
if I load an XML both of the following two methods should find the Node and return access to isn't nodes and values.
However my XMLNodeList is always empty and the GetElementsByTag always returns multiple values.
What is wrong with the SelectNodes Syntax?
(The xml doc is a kml Document) fundamental node hirachy looks somehting like) - I need to get the coords, but only for LineString Items.
TIA Rob
My limited understanding
if I load an XML both of the following two methods should find the Node and return access to isn't nodes and values.
Code:
dim xd as new XMLDocument()
xd.Load(<i>pathToDoc</i>)
dim nl as XMLNodeList = xd.SelectNodes("//LineString")
[green]' or [/green]
xd.GetElementsByTagName("LineString")
However my XMLNodeList is always empty and the GetElementsByTag always returns multiple values.
What is wrong with the SelectNodes Syntax?
(The xml doc is a kml Document) fundamental node hirachy looks somehting like) - I need to get the coords, but only for LineString Items.
TIA Rob
Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="[URL unfurl="true"]http://earth.google.com/kml/2.2">[/URL]
<Document>
<Folder>
<styleUrl>
<LineString>
<coordinates>
LAT AND LONG...
</coordinates>
</LineString>
</styleUrl>
</Folder>
</Document>
</kml>