我正在使用PHP将XML Feed发送到亚马逊。
以下是XSD https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/amzn-base.xsd
当存在小数位时,我的XMl Feed抛出并出错示例"a book"
有效但Volts: 6
会抛出整数错误,
完整XML
Volts: 6.50
此行出错
<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>ssss</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>AZ-040T-2</SKU>
<Condition>
<ConditionType>New</ConditionType>
</Condition>
<DescriptionData>
<Title>Replacement For Asss</Title>
<Brand>ABC</Brand>
<Description>Replacement For Light Bulb&lt;br&gt;6.50&lt;br&gt;17.88&lt;br&gt;125</Description>
<BulletPoint>Replacement For Light Bulb</BulletPoint><BulletPoint>Volts: 6.50</BulletPoint><BulletPoint>Watts: 17.88</BulletPoint>
<Manufacturer>Technical Precision</Manufacturer>
<MfrPartNumber>501</MfrPartNumber>
<ItemType>light-bulbs</ItemType>
</DescriptionData>
<ProductData>
<Lighting>
<ProductType>
<LightBulbs>
<BulbType>Incandescent</BulbType><BulbWattage>17.88</BulbWattage><Voltage>7</Voltage></LightBulbs>
</ProductType>
</Lighting>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>
错误
第281263行的XML分析错误,第133列: cvc-datatype-valid.1.2.1:'6.50'不是'整数'的有效值。