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 ?> SCWLA 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)); ?>
Date Time Umpire Hosts Div.
{'home-team'}; ?> undefinedSafeGet('home-goals'); ?> v undefinedSafeGet('away-goals'); ?> {'away-team'}; ?> time; ?> umpire; ?> hosts; ?> competition; ?>

Data provided by southlacrosse.org.uk