Sub Process_Globals
Dim Parser As SaxParser
Dim HttpClient1 As HttpClient
Dim wm as String
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Parser.Initialize
HttpClient1.Initialize("HttpClient1")
End If
Request.InitializeGet("http://..................") 'your feed URL here
If HttpClient1.Execute(Request, 1) = False Then Return
End Sub
Sub HttpClient1_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim Result As InputStream
Result = Response.GetInputStream
Parser.Parse(Result, "Parser")
Result.Close
End Sub
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
If Parser.Parents.IndexOf("item") > -1 Then
If Name = "yweather" Then [COLOR="Red"]'error likely here[/COLOR]
wm = wm & Text.ToString & CRLF
Else If Name = "description" Then
wm = wm & Text.ToString
End if
End If
End Sub