article has no parent node.
Try this
PHP Code:
<?php
$apiurl = "http://api.spreadshirt.com/api/v1/shops/266497/articles/10568005";
$feed = simplexml_load_file($apiurl);
$items = $feed;
foreach ($items as $article =>$val) {
if(strlen(trim($val))==0){
echo '<b><u>'.$article.'</u></b><br>';
echo '<pre>'; print_r($items->$article); echo '</pre>';
}else{
echo '<b>'.$article.'</b> = '.$val.'<br>';
}
}
echo '<b>This is what you need</b> '.$items->product->defaultValues->defaultDesign[id];
?>