XMLSax Attribute Value

pixelpop

Active Member
Licensed User
Longtime User
[UPDATE: Issue Resolved]

I am using XMLSax to parse an XML file in this format:

<FlightHistory DepartureAirportTimeZoneOffset="-8" ArrivalAirportTimeZoneOffset="-5" ArrivalDate="2013-02-03T22:15:00.000" ArrivalGate="D32" ArrivalTerminal="N" ...etc.

I am using Parser_StartElement(Uri As String, Name As String, Attributes As Attributes) to examine the attribute of each element via a MsgBox:

Msgbox("Uri=" & Uri & CRLF & "Name=" & Name & CRLF & "Attrib=" & Attributes.GetValue(22), "")

This method correctly identified attribute 22 as an S. However, any attempt to use this attribute as a string value:

chkstat = Attributes.GetValue(22)

returns a null value. How can I convert this attribute value to a string that can be evaluated?
 
Last edited:
Top