php - error respons from amazon. Error: "parameter <?x ml version failed a validation check: Extraneous whitespace for input value:



<?xml version="1.0"?>
<ErrorResponse><Error><Type>Sender</Type><Code>InvalidRequest</Code><Message>parameter &lt;?xml version failed a validation check: Extraneous whitespace for input value: ""1.0" encoding="UTF-8"?&gt;
&lt;AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi=""&gt;
&lt;Brand&gt;&lt;![CDATA[Liberty Mountain]]&gt;&lt;/Brand&gt;
&lt;Description&gt;This is a description&lt;/Description&gt;
&lt;ItemType&gt;Sports "</Message>

Now, I haven't used XML very much but it doesn't seem to complicated. I have been working on this problem for a few days now and I just can't seem to figure it out. I know there has got to be something wrong with my xml I jsut can't pinpoint where.

'<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="">
<MessageID>' . rand(1,1000) . '</MessageID>
<SKU><![CDATA['. $product->getSKU() .']]></SKU>
<LaunchDate><![CDATA[' . date('Y-m-d') . 'T' . date('H:i:sO') . ']]></LaunchDate>
<Brand><![CDATA[' . $brand[$product->getBrandId()] . ']]></Brand>
<Description>This is a description</Description>
<ItemType>Sports & Outdoors</ItemType>

I don't know what is wrong with it, but amzaon doesn't like it and I don't know why. Anyone have similar problems? The amazon Documentation doesn't have anything. I am getting somewhat desperate with this. Thanks for any help :)




It means that you have a charactor that the Amazon feed does not like.

Such as &,#,etc.

People are also looking for solutions to the problem: php - MySQL Query to Count Max Consecutive Updates of a Specific Value


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.