Salut,
s'il vous plait j'aimerai savoir comment regler ce probleme ou comment fonctionne le parseur XML.
sur prestashop je genere du xml avec les attributs. quand la marque est vide tout semble ok
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <Request> <Product><SellerSku>4232156</SellerSku> <Name>Blaz0 - Noir</Name> <Variation>S</Variation> <Quantity>301</Quantity> <Price>9</Price> <ProductId>888588188615</ProductId> <Brand>NONE</Brand> <PrimaryCategory>18983</PrimaryCategory> <Description><![CDATA[<p>yow108998888est 5 6666666Test brand !</p>]]></Description> <TaxClass>IVA 16%</TaxClass><ProductData> <ConditionType>New</ConditionType> <DeliveryTimeSupplier>10</DeliveryTimeSupplier> <PackageHeight>0</PackageHeight> <PackageLength>0</PackageLength> <PackageWeight>0</PackageWeight> <PackageWidth>0</PackageWidth> <ConditionTypeNote>new</ConditionTypeNote> <ProductMeasures>0 x 0 x 0</ProductMeasures> <ProductWarranty>garantie 6 mois</ProductWarranty> <ShortDescription><![CDATA[<p> petite description.</p>]]></ShortDescription> </ProductData> </Product></Request>
Par contre quand la marque existe le XML generè est de la maniere suivante.
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <Request> <Product> <Brand>PIFPAF</Brand> <Description><![CDATA[<p>yow108998888est 5 6666666Test brand !</p>]]></Description> <Name>Blaz0 - Noir</Name> <Price>301</Price> <PrimaryCategory>18983</PrimaryCategory> <ProductId>888588188615</ProductId> <SellerSku>4232156</SellerSku> <TaxClass>IVA 16%</TaxClass> <ProductData> <ConditionType>New</ConditionType> <DeliveryTimeSupplier>10</DeliveryTimeSupplier> <PackageHeight>0</PackageHeight> <PackageLength>0</PackageLength> <PackageWeight>0</PackageWeight> <PackageWidth>0</PackageWidth> <ConditionTypeNote>new</ConditionTypeNote> <ProductMeasures>0 x 0 x 0</ProductMeasures> <ProductWarranty>garantie 6 mois</ProductWarranty> <ShortDescription><![CDATA[<p> petite description.</p>]]></ShortDescription> </ProductData> </Product> </Request>
Merci pour votre aide.
Partager