を解析するためにここに私のxmlデータの一例使用PHPがXML
<GetSendStatisticsResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
<GetSendStatisticsResult>
<SendDataPoints>
<member>
<DeliveryAttempts>69</DeliveryAttempts>
<Timestamp>2011-09-12T01:00:00Z</Timestamp>
<Rejects>0</Rejects>
<Bounces>0</Bounces>
<Complaints>0</Complaints>
</member>
<member>
<DeliveryAttempts>1</DeliveryAttempts>
<Timestamp>2011-09-08T17:00:00Z</Timestamp>
<Rejects>0</Rejects>
<Bounces>0</Bounces>
<Complaints>0</Complaints>
</member>
<member>
<DeliveryAttempts>282</DeliveryAttempts>
<Timestamp>2011-09-09T18:00:00Z</Timestamp>
<Rejects>0</Rejects>
<Bounces>0</Bounces>
<Complaints>0</Complaints>
</member>
そしてここでは私のコードだからです。 $ xmlがJSONまたはArrayに変換されてもOKです。 DeliveryAttemptsを表示するためにxmlを繰り返し処理するのに最適なものは何でも。
「var_dump($ result)」は何を生成しますか? –
"array(0){}"と答えています – johnwhitney
は現在var_dump($ resp)を実行しています。 –