Jump to content

Parcourir les informations d'un lien type Xlink xml


ml972

Recommended Posts

Bonjour,

 

 

j'utilise actuellement le Webservice, novice dans ce domaine j'ai fait pas d'interaction avec les fichier xml mars le je bloc le fait de pouvoir avoir accès aux informations dans un Xlink.

 

Pour exemple :

 

j'ai généré le xml stock_availables, j'ai toutes informations suivantes :

<stock_available>
	<id><![CDATA[14]]></id>
	<id_product xlink:href="http://www.xxxxxxxxxxx.fr/api/products/1"><![CDATA[1]]></id_product>
	<id_product_attribute><![CDATA[0]]></id_product_attribute>
	<id_shop xlink:href="http://www.xxxxxxxxxxx.fr/api/shops/1"><![CDATA[1]]></id_shop>
	<id_shop_group><![CDATA[0]]></id_shop_group>
	<quantity><![CDATA[0]]></quantity>
	<depends_on_stock><![CDATA[0]]></depends_on_stock>
	<out_of_stock><![CDATA[0]]></out_of_stock>
</stock_available>

Ma question est la suivante: Comment je fais pour intégrer les informations du Xlink ci dessous sur mon xml  stock_availables? (Je voudrais voir le nom de la boutique et non et en parcourant ce lien je retrouve le nom)

<id_shop xlink:href="http://www.xxxxxxxxxxx.fr/api/shops/1"><![CDATA[1]]></id_shop>

Merci

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