Hi,
The code below works well for me in VB.NET, however, I need to perform this using VBScript. I have been unable to find any documentation or examples of how to create an object that references the XMLTextReader. All I can find is examples using the XMLDOM object. Any suggestions would be appreciated.
Thanks
Dim reader As XmlTextReader = New XmlTextReader("F:\GM HFV6 Daily Events\9-26-2014\HFV6 Block Main.xml")
'How to get a point
Do While (reader.Read())
If reader.MoveToContent() = XmlNodeType.Element And reader.Name = "point" Then
If reader.HasAttributes Then 'If attributes exist
While reader.MoveToNextAttribute()
'Display attribute name and value.
Console.Write(" {0}='{1}'", reader.Name, reader.Value)
End While
End If
Console.WriteLine()
End If
Loop