Sax parser throwing fatal error on Blackberry

大城市里の小女人 提交于 2019-12-08 13:31:34

问题


I get the HTML string from webservice.

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.


回答1:


Parsing HTML is a non-trivial problem, made more difficult on BlackBerry smartphones by the limitations of J2ME. I have a blog posting on leveraging the BrowserField to parse the HTML, which will then give you a DOM document. It solved my problem, something similar may work for you.



来源:https://stackoverflow.com/questions/7330050/sax-parser-throwing-fatal-error-on-blackberry

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!