开发者

Sax parser throwing fatal error on Blackberry

开发者 https://www.devze.com 2023-04-03 08:33 出处:网络
I get the HTML string from开发者_开发问答 webservice. When I parse on saxparser, it throws fatal error1.

I get the HTML string from开发者_开发问答 webservice.

Sax parser throwing fatal error on Blackberry

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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号