Hi Andy,
How would I go about retrieving an image when the code is nested with other tags?
<channel>
<item>
<content:encoded>
<![CDATA[
<p><a href="http://123.com"><img src="http://123.com/a.jpg" /></a></p>
<p>Hillary loves her new car her stepdad purchased.</p>
]]>
</content:encoded>
</item>
</channel>
I have tried this but to no avail:
~ ERASER
Free JavaScripts @ Insight Eye
How would I go about retrieving an image when the code is nested with other tags?
<channel>
<item>
<content:encoded>
<![CDATA[
<p><a href="http://123.com"><img src="http://123.com/a.jpg" /></a></p>
<p>Hillary loves her new car her stepdad purchased.</p>
]]>
</content:encoded>
</item>
</channel>
I have tried this but to no avail:
Code:
$ref->{channel}->{item}[$i]->{image} = $ref->{channel}->{item}[$i]->->{'content:encoded'}->{img}->{src};~ ERASER
Free JavaScripts @ Insight Eye