Read from RSS feed

TrisectDevelopment

Active Member
Licensed User
Longtime User
I working on an App that should read from RSS feed.
I cant seem to find any solution on this board.

How do I read from a RSS feed and how do I display it?
 
Yes it is an XML and you can also use the example to read this XML, just add the XML to the project files and change the name on the code.

I have attached a copy of the XML you put on the link.
 

Attachments

Upvote 0
If by "gettting it to B4A" you mean how to add it to your project, you will have to ADD FILES, you will see that button on the designer, click there and then search for the XML you need and that's all.

Read the sample code I mentioned before, these lines load the XML:

Code: Copy
Dim in As InputStream

in = File.OpenInput(File.DirAssets, "test.xml") '<--- Your XML file name
Parser.Parse(in, "Parser")
in.Close

Check the attached picture.
 

Attachments

  • AddFiles.JPG
    AddFiles.JPG
    6.3 KB · Views: 668
Upvote 0
I just started thinking about displaying an RSS feed myself. My question is if an RSS feed displays fine in a browser, can you not just use a webview to display it?
 
Upvote 0
Back
Top