Get Taxonomy

Enter all or part of a scientific name in the box below to return a list of matching species.

Click here to view the source code.

Click here to view the request to the server.

Click here to view the returned XML file.

Species Name:
timeout = 500; $client->response_timeout = 500; $err = $client->getError(); if ($err) { echo '

Constructor error

' . $err . '
'; } $query1=' '.$_POST["spp"].' '; $result = $client->call("GetTaxonReportingCategoryName", $query1); $debug = $client->getDebug(); print '

Results

'; //print $result; //the xml returned from the gateway appears to be missing the xml header which upsets PHP - so fix it first $fle=$client->response; $fle=str_replace("nbntq:","",$fle); //$obj = simplexml_load_string(fixupxml($client->response)); $obj = simplexml_load_string(fixupxml($fle)); print ("
"); echo ""; echo ""; //$txn="nbntq:Taxon"; foreach ($obj->Taxon as $Taxon) { echo ""; } echo "
CategoryScientific nameTaxon Version KeyAuthority
". ucfirst($Taxon->TaxonReportingCategory) ."". $Taxon->TaxonName. "". $Taxon['taxonVersionKey'] ."". $Taxon->Authority. "
"; print ("
"); print '

Request to Server

'; echo ''.$client->request.''; print "
Back to the top
"; //Debugging code if(isset($_GET["debug"])){ print '

Fixed up XML

'; echo ''.fixupxml($client->response).''; print '

Response

'; echo ''.$client->response.''; echo '

Debug

' . $debug . '

'; } echo "

The Returned XML File

";
		print htmlspecialchars(fixupxml($client->response));
		echo "
"; } ?>
Back to the top

Source code for this page