All pastes #968260 Raw Edit

Stuff

public text v1 · immutable
·published 2008-04-02 22:28 UTC
rendered paste body
<?php

$doc = simplexml_load_file('feed.xml');

foreach ($doc->sport->game as $game){
  $date = $game->date;
  $awayteam = $game->awayteam;
  $hometeam = $game->hometeam;
  $visitorspread = $game->visitorspread;
  $homespread = $game->homespread;
}

echo "Date: $date<br />Away Team: $awayteam<br />Hometeam: $hometeam<br />Visitor Spread: $visitorspread<br />Homespread: $homespread<br />";

?>