이 '알림 : 개체가 아닌 오류의 속성을 얻으려고 시도 중'이 표시됩니다.
현재이 varDump가 있습니다.
object(SimpleXMLElement)#1 (1) {
["GetCompetitivePricingForASINResult"]=>
object(SimpleXMLElement)#2 (2) {
["@attributes"]=>
array(2) {
["ASIN"]=>
string(10) "0747587086"
["status"]=>
string(7) "Success"
}
["Product"]=>
object(SimpleXMLElement)#3 (1) {
["Identifiers"]=>
object(SimpleXMLElement)#4 (1) {
["MarketplaceASIN"]=>
object(SimpleXMLElement)#5 (2) {
["MarketplaceId"]=>
string(13) "ATVPDKIKX0DER"
["ASIN"]=>
string(10) "0747587086"
}
}
}
}
}
그리고 여기에 오류를 제공하는 xml elemtn에 대한 호출이 있습니다.
echo $xmlFile->GetCompetitivePricingForASINResult->Identifier->MarketplaceASIN->ASIN. "\n";
누구든지 내가해야 할 일에 대해 조언 할 수 있습니까? 나는 온라인에서 약간의 조사를했다. 하지만 케이스에 따라 다릅니다 ...
감사,
당신은 생략 Product
하고, 당신은을 왼쪽 s
의 끝에서 Identifiers
. 그것은해야한다
$xmlFile->GetCompetitivePricingForASINResult->Product->Identifiers->MarketplaceASIN->ASIN
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다