I am getting some info from an RSS.
<?php
$dom = new DOMDocument;
libxml_use_internal_errors(TRUE);
$dom->load('http://www.myrss.com');
libxml_clear_errors();
$xPath = new DOMXPath($dom);
$links = $xPath->query('xxxxx');
foreach($links as $link) {
printf("%s
", $link->nodeValue);
}
?>
I have managed to get the TITLE, LINK and DESCRIPTION with //item/title
and so on, howver I want to get the text content and image of description seperated.
As I can see through page source using firefox this is the code I see for image and the content. Both are in <description></description>
IMAGE
<div class="separator" style="clear: both; text-align: center;"><a href="LINK TO IMAGE" imageanchor="1"
style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192"
src="LINK TO IMAGE" width="320" /></a></div>
CONTENT TEXT
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"> CONTENT TEXT IS HERE </span>
What xPath should I use to get those data? Thank you