Sax parser throwing fatal error on Blackberry


I get the HTML string from webservice.

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/kU3Um.jpg" data-original="https://i.stack.imgur.com/kU3Um.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

When I parse on saxparser, it throws fatal error1.

Start tag (Image tag) doesn't match with end tag. Then how to get image src? And how to get div id name? Or is there any other parser to parse HTML string? Please help me.


Parsing HTML is a non-trivial problem, made more difficult on BlackBerry smartphones by the limitations of J2ME. I have a <a href="http://www.hrbuckley.net/2011/08/parsing-html-on-blackberry.html" rel="nofollow">blog posting on leveraging the BrowserField to parse the HTML</a>, which will then give you a DOM document. It solved my problem, something similar may work for you.


  • How to call JSON webservice from background in iPhone
  • Using a WebService with Akka Actors and the play framework
  • Android - What should I use to get data from remote db?
  • android with msaccess
  • Is it possible to run clang with llc flags
  • Doctrine/Symfony entity generator and generating entity from one table
  • CSS bleed-through with cfinput type=“datefield”
  • Uncaught TypeError: $(…).select2 is not a function
  • Kendo barchart category labels left and right based on value
  • Adding elements to a huge XML file
  • Android application: how to use the camera and grab the image bytes?
  • How to view images from protected folder with php?
  • How does document.ready work with angular element directives?
  • Using a canvas object in a thread to do simple animations - Java
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • How integrated is Collada to OpenGL ES
  • Display images in Django
  • Jackson Parser: ignore deserializing for type mismatch
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Python urlparse: small issue
  • Extracting HTML between tags
  • FileReader+canvas image loading problem
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Get one-time binding to work for ng-if
  • Insert into database using onclick function
  • Deselecting radio buttons while keeping the View Model in synch
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Volley JsonObjectRequest send headers in GET Request
  • Resize panoramic image to fixed size
  • Importing jscolor library in angular 2
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • python regex in pyparsing
  • How to stop GridView from loading again when I press back button?
  • Android Google Maps API OnLocationChanged only called once
  • python draw pie shapes with colour filled
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • How can I use threading to 'tick' a timer to be accessed by other threads?