bonjour
j'aimerais extraire les donnees d'un fichier xml destiné à google shopping
j'arrive sur les noeuds "simple" mais pas sur les noeuds de type g:image_link ou link
savez vous svp comment faire ?
Mon fichier xml :
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 <?xml version="1.0"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"> <title>Nom de votre flux de données</title> <link href="http://www.example.com" rel="alternate" type="text/html" /> <updated>2006-06-11T18:30:02Z</updated> <author> <name>Google</name> </author> <id>tag:example.com,2006-06-11:/support/products</id> <entry> <title>Pull-over en laine rouge</title> <id>1a</id> <link href="http://www.example.com/item1-info-page.html" /> <summary>Doux et confortable, ce pull-over vous tiendra bien au chaud pendant les soirées d'hiver.</summary> <updated>2005-10-13T18:30:02Z</updated> <g:image_link>http://www.google.com/images/google_sm.gif</g:image_link> <g:price>25</g:price> <g:condition>neuf</g:condition> </entry> </feed>
Partager