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 } ?>