I'm using this PHP to parse a XML file:
<?php
$xml = simplexml_load_file("http://api.imgur.com/2/image/zzFV5.xml");
echo $xml->getName() . "<br />";
foreach($xml->children() as $child) {
echo $child->getName() . ": " . $child . "<br />";
}
?>
How can I display the parsed content from the XML in my HTML file? Something like:
Image Views:<br/>
<?php echo ( $_REQUEST['views']) . ;?>
Thanks for your tips.
$html .= $xml->getName() . "<br />";, but if you're looking to display a specific part of your XML, you'll need to be more explicit