Sax parser throwing fatal error on Blackberry

2019-06-10 09:44发布

I get the HTML string from webservice.

enter image description here

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.

标签: blackberry
1条回答
萌系小妹纸
2楼-- · 2019-06-10 10:11

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.

查看更多
登录 后发表回答