I'd like to fetch data from this sample code:
<div id="text">
(sd) <a href="http://example.com/somefiledfs.flv">http://example.com/somefiledfs.flv</a>
- 380 kbps
- <a href='/player.swf?config={"clip":{"url":"http://example.com/somefiledfs.flv"}'>Watch</a><br>
(576p) <a href="http://example.com/hgyj.mp4">http://example.com/hgyj.mp4</a>
- 780 kbps
- <a href='/player.swf?config={"clip":{"url":"http://example.com/hgyj.mp4"}'>Watch</a><br>
</div>
I'd like to get it as:
sd - http://example.com/somefiledfs.flv
576p - http://example.com/hgyj.mp4
and so on.
Could sb help? I've beed trying to use "//div[@id='text']/a" and ancestor/preceding but I can't work it out.