<?php$file = 'https://demo.conitor.in/Remembered/views/feed.php';if(!$xml = simplexml_load_file($file)){ // Will return false if the file doesn't contain a well formated XML document. echo "file not found!";} else { echo "<table><thead><tr><th>Number</th><th>Title</th><th>First Name</th><th>State</th></tr></thead><tbody>"; $i = 0; // Refere your SimpleXmlObject Struture for more information. foreach ($xml->channel->item as $item) { echo "<tr><td>" .++$i ."</td><td>" . $item->title . "</td><td>" . $item->DeceasedFirstName . "</td><td>" . $item->State ."</td></tr>"; } echo "</tbody></table>";}?>
- 2 回答
- 0 关注
- 118 浏览
添加回答
举报
0/150
提交
取消