Listings in {$xml->GetCategoryListingsResponse->Category-> CategoryName}\n"; $parentID = getCatagoryID($xml->GetCategoryListingsResponse->Category-> CategoryID); echo "Return to Categories Listing\n"; if (isset($xml->GetCategoryListingsResponse->ItemArray->Item)) { foreach($xml->GetCategoryListingsResponse->ItemArray->Item AS $item) { echo "ItemID}\">{$item->Title} currently has a high bid of $ {$item->SellingStatus->CurrentPrice} after a total of {$item-> SellingStatus->BidCount} bids\n"; } }else { echo "No listings, Sorry\n"; } if (isset($xml->GetCategoryListingsResponse->SubCategories->Category)) { echo "