开发者

How to extract image path within a tag on BlackBerry

I have a tag called <descriptor> which contains some description and an image URL.

Here is my description tag.

<descr开发者_Go百科iption>
    <![CDATA[<img  width="100"   src="http://MYURL/img/news/111/octo/one1.jpg"  align="right" alt="name"/>
</description>

I want to extract the image path to display it. I am using the SAX parser for parsing.

Need your help.


you will get the CDATA completely like () when you parse in sax, You store as a string. Then parse the string in other function to get the image url path.

getPath(description); void getpath(String description){

// implements your logic here

}

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜