Okay, sorry I missed the point. I didn't know the output could be formatted.
Here it is.
SimpleXMLElement Object ( [OperationRequest] => SimpleXMLElement Object ( [RequestId] => 81dd6451-0148-4250-9488-62f0d2479a3c [Arguments] => SimpleXMLElement Object ( [Argument] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Operation [Value] => ItemLookup ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Service [Value] => AWSECommerceService ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Signature [Value] => fRQANn34el96vZJXBVWoEHmq5yPWWmAHb4rBDSmM5Q4= ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Version [Value] => 2009-01-06 ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => ItemId [Value] => B000BUR1 ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => IdType-ASIN ) ) [6] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => AWSAccessKeyId [Value] => AKIAIETJLADYILLAACBA ) ) [7] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Timestamp [Value] => 2010-05-22T20:02:59Z ) ) ) ) [RequestProcessingTime] => 0.0066750000000000 ) [Items] => SimpleXMLElement Object ( [Request] => SimpleXMLElement Object ( [IsValid] => True [ItemLookupRequest] => SimpleXMLElement Object ( [Condition] => New [DeliveryMethod] => Ship [IdType] => ASIN [MerchantId] => Amazon [OfferPage] => 1 [ItemId] => B000BUR1 [ResponseGroup] => Small [ReviewPage] => 1 [ReviewSort] => -SubmissionDate [VariationPage] => All ) [Errors] => SimpleXMLElement Object ( [Error] => SimpleXMLElement Object ( [Code] => AWS.InvalidParameterValue [Message] => B000BUR1 is not a valid value for ItemId. Please change this value and retry your request. ) ) ) ) )
I thought you were supposed to put the php in
tags. I never heard of the
tags.
By the way,
the structure of the error xml is as far as I can tell
The structure of the response message is:
<OperationREquest>
<Items>
<Item>
<ItemAttributes>
</ItemAttributes>
</Item>
</Items>
<Errors>
<Error>
<Message>
</Message>
<Code>
</Code>
<Error>
</ERrors>
<OperationRequest>
Without an error it eliminates the Errors section.
thanks,