Jump to content

Web service supprimer des tag inutilie


Recommended Posts

Bonjour a tous,

 

voila je suis entrain de développer une application qui se connecte à prestashop par l'intermediaire d'un webservice.

 

Pour le mapping côté client je doit effectivement mapper tous les elements du flux xml y compris les informations qui sont inutile pour moi.

 

Voici la ressource "categories"

 

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<category>
 <id><![CDATA[1]]></id>
 <id_parent />
 <level_depth readonly="true"><![CDATA[0]]></level_depth>
 <nb_products_recursive not_filterable="true"
  readonly="true"><![CDATA[7]]></nb_products_recursive>
 <active><![CDATA[1]]></active>
 <name>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[Home]]></language>
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[Accueil]]></language>
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[inicio]]></language>
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[start]]></language>
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[Home page]]></language>
 </name>
 <link_rewrite>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[home]]></language>
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[home]]></language>
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[home]]></language>
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[home]]></language>
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[home]]></language>
 </link_rewrite>
 <meta_title>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1" />
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2" />
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3" />
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4" />
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5" />
 </meta_title>
 <meta_description>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1" />
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2" />
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3" />
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4" />
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5" />
 </meta_description>
 <meta_keywords>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1" />
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2" />
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3" />
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4" />
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5" />
 </meta_keywords>
 <description>
  <language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[]]>
  </language>
  <language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[]]>
  </language>
  <language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[]]>
  </language>
  <language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[]]>
  </language>
  <language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[]]>
  </language>
 </description>
 <date_add readonly="true"><![CDATA[2013-04-16 21:45:18]]></date_add>
 <date_upd readonly="true"><![CDATA[2013-04-16 21:45:18]]></date_upd>
 <associations>
  <categories node_type="category">
   <category xlink:href="http://localhost/prestashop/api/categories/2">
 <id><![CDATA[2]]></id>
   </category>
   <category xlink:href="http://localhost/prestashop/api/categories/3">
 <id><![CDATA[3]]></id>
   </category>
   <category xlink:href="http://localhost/prestashop/api/categories/4">
 <id><![CDATA[4]]></id>
   </category>
  </categories>
  <products node_type="product">
   <product xlink:href="http://localhost/prestashop/api/products/1">
 <id><![CDATA[1]]></id>
   </product>
   <product xlink:href="http://localhost/prestashop/api/products/2">
 <id><![CDATA[2]]></id>
   </product>
   <product xlink:href="http://localhost/prestashop/api/products/6">
 <id><![CDATA[6]]></id>
   </product>
   <product xlink:href="http://localhost/prestashop/api/products/7">
 <id><![CDATA[7]]></id>
   </product>
  </products>
 </associations>
</category>
</prestashop>

 

J'aimerai par exemple enlever les tag méta, qui me sont pas indispensable.

Il faut modifier la classe "Category" mais quelle ligne de code php faut il modifier?

 

Merci de votre réponse.

Cordialement

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...