Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created September 20, 2013 20:02
Show Gist options
  • Select an option

  • Save wboykinm/6643035 to your computer and use it in GitHub Desktop.

Select an option

Save wboykinm/6643035 to your computer and use it in GitHub Desktop.
<?php
header('Content-type: text/plain');
# Read the XML file
$test1 = (string)file_get_contents('http://www.afdb.org/fileadmin/uploads/afdb/Documents/Generic-Documents/IATIBotswanaData.xml');
$xmlfile = simplexml_load_string($test1);
echo $xmlfile['iati-activity'][0]['reporting-org'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment