All pastes #472933 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-05 22:41 UTC
rendered paste body
<?php
include 'final.php';

$xml = new SimpleXMLElement($xmlstr);

/* Access the <rating> nodes of the first movie.
 * Output the rating scale, too. */
foreach ($xml->weblog[0] as $weblog) {
    echo "test";
    echo($weblog);  // Get attributes as element indices
}
?>