我正在使用AmazonAPI,当我提交请求时,响应类似于我将如何继续循环,因为每个xml表有5个产品需要解析。这样的事情行得通吗?if($items->GetMatchingProductForIdResult->Products->Product->AttributeSets->Relationship===FALSE){$salesRank=$items->GetMatchingProductForIdResult->Products->Product->AttributeSets->SalesRankings->SalesRank[0];}else{$ASIN=$items->G