JdV Active Member Licensed User Longtime User Feb 10, 2017 #1 Hello Is there a way to tell how far through an XML file the XML parser has progressed? At the moment I use "ProgressDialogShow" when the process starts and "ProgressDialogHide" when the file's closing element is read but it would be nice to be able to show a simple message like "Processed: 23kb of 100kb" in a label that gets updated periodically. Regards Joe
Hello Is there a way to tell how far through an XML file the XML parser has progressed? At the moment I use "ProgressDialogShow" when the process starts and "ProgressDialogHide" when the file's closing element is read but it would be nice to be able to show a simple message like "Processed: 23kb of 100kb" in a label that gets updated periodically. Regards Joe
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2017 #2 No. The progress is not tracked. How long does it take to parse the file? Can you upload the xml? Upvote 0
JdV Active Member Licensed User Longtime User Feb 13, 2017 #3 The ones I'm experimenting with are only a few hundred lines/few hundred kb. On my Google Pixel C it takes less than a second to import. However on the emulator and older devices it takes longer and in future I would be looking at importing much larger files. Upvote 0
The ones I'm experimenting with are only a few hundred lines/few hundred kb. On my Google Pixel C it takes less than a second to import. However on the emulator and older devices it takes longer and in future I would be looking at importing much larger files.
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2017 #4 The emulator is not relevant. Also make sure to always test performance in release mode. The best solution is to make it fast enough. Upvote 0
The emulator is not relevant. Also make sure to always test performance in release mode. The best solution is to make it fast enough.