I want a string from HTML content. I am showing some part of HTML string here:
<div style="border: 1px solid #999999; margin: 0px 10px 5px 0px;">
<a href="http://www.youtube.com">
<img alt="" src="http://someImage.jpg">
</a>
</div>
I am getting this as a string from SAX parsing. Now I want only the image path : “http://someImage.jpg” as a string.
Please anybody help me. How to get that string?
I think you need to use regular expression . Here i post some code . Please check it.
Code for Getting Href Link from Image Tag
Code for Getting Image Path from Image Tag