Just a single accented letter to crash the control XmlSax. If you replace the line <title> Phone library was updated - V1.10 </ title> with the line <title> Phone library was updated - V1.10à </ title> procedure returns error
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
If parser.Parents.IndexOf ("item")> -1 Then
If Name = "title" Then
Title = Text.ToString
Else if name = "link" Then
Link Text.ToString
Else If Name = "pubDate" Then
pubDate = Text.ToString
end If
end If
If Name = "item" Then
ListView1.AddSingleLine2 (Title, Link) 'add the title as the text and the link as the value
end If
the error applies to each character type: à or ì
:signOops:
Someone has a solution?
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
If parser.Parents.IndexOf ("item")> -1 Then
If Name = "title" Then
Title = Text.ToString
Else if name = "link" Then
Link Text.ToString
Else If Name = "pubDate" Then
pubDate = Text.ToString
end If
end If
If Name = "item" Then
ListView1.AddSingleLine2 (Title, Link) 'add the title as the text and the link as the value
end If
the error applies to each character type: à or ì
:signOops:
Someone has a solution?