Android Question Parser_EndElement - 2816 characters

micheleBr

Member
Licensed User
Longtime User
Good morning,
I'm trying to read a feed, this feed has a "description" node with 2816 characters (I calculate number this from source), but I cannot retrieve the entire node "description". (because 2816 characters???)

Tnx in advance for any suggestions !!!

here the code:

B4X:
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.Trim   
           
        Else If Name = "link" Then
       
            Link = Text.ToString()
           
        Else If Name = "pubDate" Then
            If Text.ToString.Trim.Length = 0 Then
                PubDate = ""
            Else
                PubDate = ElaboraData(Text.ToString)
            End If
           
        Else If Name = "description" Then
           
            Description = Text.ToString '2816 characters ********** !!!!!!!!!!!
           
        End If       
    End If
   
    If Name = "item" Then
        RSS.Add(CreateListItem(Title, Description, PubDate, imgLink, RSS.AsView.Width, 140dip), 140dip, Link)    
    End If
   
End Sub
 

micheleBr

Member
Licensed User
Longtime User
Hi, there is not really an error, but in "Description = Text.ToString" there is not the whole text.
I attach the node "description" that I try to read..
 

Attachments

  • sample_node.txt
    3 KB · Views: 170
Upvote 0
Top