bakerburnt
New Member
I am trying to display Xml content in to tables, all works perfectly but some content in the tag that i don't want to display, I want only image but not November 2012 calendar from 5.10 The Test like in xml,\[code\] <content:encoded><![CDATA[<p>November 2012 calendar from 5.10 The Test</p> <p><a class="shutterset_" href='http://trance-gemini.com/wordpress/wp-content/gallery/calendars/laura-bertram-trance-gemini-145-1080.jpg' title='<br>November 2012 calendar from 5.10 The Test<br> <a href=http://stackoverflow.com/questions/15849209/"</a></p>]]></content:encoded> \[/code\]I want to display image but not November 2012 calendar from 5.10 The Test .\[code\]<?php// load SimpleXML$item = new SimpleXMLElement('test1.xml', null, true);echo <<<EOF<table border="1px"> <tr cl> </tr> EOF;foreach($item->channel->item as $boo) // loop through our books{ echo <<<EOF <tr> <td rowspan="3">{$boo->children('content', true)->encoded}</td> <td>{$boo->title}</td> </tr> <tr> <td>{$boo->description}</td> </tr> <tr> <td>{boo->comments}</td> </tr>EOF;}echo '</table>';?>\[/code\]