开发者

How to extract image path within a tag on BlackBerry

开发者 https://www.devze.com 2023-04-12 12:08 出处:网络
I have a tag called <descriptor> which contains some description and an image URL. Here is my description tag.

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

精彩评论

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

关注公众号