开发者

Sax parser throwing fatal error on Blackberry

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜