get($opt);
// Here we get the elements from children of customers markup "customer"
$resources = $xml->customers->children();
}
catch (PrestaShopWebserviceException $e)
{
// Here we are dealing with errors
echo 'Error : '.$e->getMessage().'';
}
// We set the Title
echo "
Customer's List
";
echo '
';
// if $resources is set we can lists element in it otherwise do nothing cause there's an error
if (isset($resources))
{
echo '
Id
';
foreach ($resources as $resource)
{
// Iterates on the found IDs
echo '