fetch(); // optimisation to send as little data as possible to the browser // Parameter is the dependancies of this page - currently only the xml // file, but if there are others then add to the array cacheHeaders(array($xmlfile)); // parse XML data into arrays for easier processing if (!$httpCache->isError()) { $parser = new simpleParser(); $xml = &$parser->parseString($httpCache->getXml()); } // output page heading ?> SEMLA Fixtures example using PHP

Back to REST Services page

isError()) { echo '

Error retrieving data : ' . $httpCache->getError() . "

\n"; } elseif (!$xml) { echo '

Error converting data : ' . $parser->getError() . "

\n"; } else { ?> fixture as $fixture) { $date = date('j M y',strtotime($fixture->date)); // note: competition is wrapped in htmlspecialchars() as it // may contain & ?>
Date Home Away Competition
undefinedSafeGet('home-team'); ?> undefinedSafeGet('home-goals'); ?> {'home-team'}) || isset($fixture->{'away-team'})) echo 'v'; ?> undefinedSafeGet('away-goals'); ?> undefinedSafeGet('away-team'); ?> undefinedSafeGet('competition')); ?>

Data provided by southlacrosse.org.uk