tufanv Expert Licensed User Longtime User Sep 5, 2016 #1 Hello I checked the b4a verison of xmlsax . It uses Code: Copy Dim in As InputStream in = File.OpenInput(File.DirAssets, "rss.xml") parser.Parse(in, "Parser") in.Close to parse the xml. I have a remote xml file. Should i use httputils to download the file to a location on my phone and use the same code as above ? if yes can you post an example line for (File.Copy2 with Job.GetInputStream) for this purpose ? TY Last edited: Sep 5, 2016
Hello I checked the b4a verison of xmlsax . It uses Code: Copy Dim in As InputStream in = File.OpenInput(File.DirAssets, "rss.xml") parser.Parse(in, "Parser") in.Close to parse the xml. I have a remote xml file. Should i use httputils to download the file to a location on my phone and use the same code as above ? if yes can you post an example line for (File.Copy2 with Job.GetInputStream) for this purpose ? TY
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2016 #2 Yes. You need to download it with HttpUtils2. You can then parse it with Parser.Parse(Job.GetInputStream, "parser") Or Parser.Parse2(Job.GetString, "parser") Upvote 0
Yes. You need to download it with HttpUtils2. You can then parse it with Parser.Parse(Job.GetInputStream, "parser") Or Parser.Parse2(Job.GetString, "parser")