Bonjour à tous. Je dois créer plusieurs champs comprenant nom, fonction, telephone et email suivant un fichier xml comme suit :

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
<?xml version="1.0" encoding="utf-8" ?>
 
<contacts>
 
  <contact>
    <nom>a</nom>
    <fonction>fonction1</fonction>
    <fonction>fonction2</fonction>
    <tel>00.00.00.00.00</tel>
    <email>a@a.a</email>
  </contact>
 
  <contact>
    <nom>b</nom>
    <fonction>fonction1</fonction>
    <fonction>fonction2</fonction>
    <tel>00.00.00.00.01</tel>
    <email>b@b.b</email>
  </contact>
 
</contacts>
J'obtient ceci :




Plusieurs problèmes :
Je ne peux pas mettre plusieurs "fonction"
Je ne peux pas faire mes choix en fonction du nom choisi ( J'aimerais que si je choisi "a", il me propose que les choix de "a", à savoir ses fonctions, "00.00.00.00.01" et "a@a.fr", dans mes listes déroulantes)