Salut a tous
je suis debutant en asp.net et je voudrai afficher un fichier xml dans un gridview
Mais le probleme il ne m'affiche que le premier attibut "id" de produit seulement
Code : 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="produit.xsl" ?>
<produits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="produit.xsd">
  <produit id="OP001">
    <marque>ACER</marque>
    <type id="00001">
      <typeproduit>Ordinateur Portable</typeproduit>
    </type>
    <specifications>
      <specification>
        <type>processeur</type>
        <caracteristique>Intel Core 2 Duo</caracteristique>
      </specification>
      <specification>
        <type>Disque dur</type>
        <caracteristique>SATA 250 Go</caracteristique>
      </specification>
      <specification>
        <type>Memoire</type>
        <caracteristique>DDR 2 2*2Go</caracteristique>
      </specification>
    </specifications>
  </produit>
  <produit id="OP002">
    <marque>HP</marque>
    <type id="00001">
      <typeproduit>Ordinateur Portable</typeproduit>
    </type>
    <specifications>
      <specification>
        <type>processeur</type>
        <caracteristique>Intel Core Duo 1.9 GHTz</caracteristique>
      </specification>
      <specification>
        <type>Disque dur</type>
        <caracteristique>SATA 200 Go</caracteristique>
      </specification>
      <specification>
        <type>Memoire</type>
        <caracteristique>DDR 2 1*2Go</caracteristique>
      </specification>
    </specifications>
  </produit>
</produits>

et moi j'aurait voulu qu'il m'affiche l'ensemble des elements .
Quelqu'un pourrait il m'aider please ...