There is no simple way to stop the parsing.
You can use ExceptionEx from the Threading library to throw an exception from one of the parsing events. This will stop the parsing.
Hi erel
I have tried this solution, I throw exception in the start element event, but I get the error message , in java surrounding the Parser.Parse2 with try catch
solve it , in b4a it doesn't help.
Hi Erel
No, I am not using the HttpUtils2 , for some reason it
doesn't download all the string I need.
Any way I have written the parser in a class with a
thread and this way it work fine.
uri
This is most probably a bug in your code. HttpUtils2 will only set the Success flag if the download was completed successfully. If you like you can post your code.