Jump to content

Problem with XML


EnJofre

Recommended Posts

If hay send this XML, Prestashop returns an error.

<position><![CDATA[1]]></position>
<name>
<language id="2"><![CDATA[Modelo]]></language>
</name>
<public_name>
<language id="2"><![CDATA[Modelo]]></language>
</public_name>
<associations>
<product_option_values nodeType="product_option_value" api="product_option_values"></product_option_values>
</associations>
</product_option>
</prestashop>

14:46:57 FALLO. sResp= <?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[84]]></code>
<message><![CDATA[Validation error: "Property Attribute->name is empty."]]></message>
</error>
</errors>
</prestashop>

But if i send this XML, the answer is Ok. The difference is the language but i don't know what i'm missing.

<prestashop xmlns:xlink="https://www.w3.org/1999/xlink">
<product_option>
<is_color_group><![CDATA[0]]></is_color_group>
<group_type><![CDATA[select]]></group_type>
<position><![CDATA[1]]></position>
<name>
<language id="1"><![CDATA[Modelo]]></language>
</name>
<public_name>
<language id="1"><![CDATA[Modelo]]></language>
</public_name>
<associations>
<product_option_values nodeType="product_option_value" api="product_option_values"></product_option_values>
</associations>
</product_option>
</prestashop>

 

Saludos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...