Rss reader for Dynamic feed

f4u5t

Member
Licensed User
Longtime User
Im trying to get at Rss reader working using the XmlSax library, which I have the parseing part working fine, once I manually download the xml.
Im having trouble downloading the xml file thought.
The feed is dynamically created thorough a php script, and I cant seem to figure it out how to save it within the program so I can parse it.


the feed url looks like this
www.somesite.com/classifieds/newads.php?type=new


im trying to use the download service to retrieve it

B4X:
   DownloadService.URL = "www.somesite.com/classifieds/newads.php?type=new"
     DownloadService.Target = File.OpenOutput(File.DirDefaultExternal, "CLASSIFIEDS.xml", False)   
    StartService(DownloadService)
 

f4u5t

Member
Licensed User
Longtime User
Could you please give me an example?

I tried it initailly but couldnt get it going, this is what I had

Ive tried to just get a simple static html page with the same results

B4X:
 b4a = "http://www.thesamba.com/vw/classifieds/newads.php?Type=new"&"&format=xml"
HttpUtils.CallbackActivity = "Main" 'Current activity name.
 HttpUtils.Download("Job1", b4a)
HttpUtils.CallbackJobDoneSub = "JobDone"

'If FirstTime Then
      parser.Initialize
'   End If
 
Last edited:
Upvote 0
Top