bonsoir,

comment je peut accéder à la texte de l'element <contained>
dans cette arborecsence avec JDOM ?
" l'enregistrer dans une variable j veus dire "

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
<Sahih-Muslim>
  <Book>
    <Chapter>
      <description>  ici un texte  </description>
      <number-hadith> num </number-hadith>
        <contained>  ici un texte  </contained>
    </Chapter>
  </Book>
  <Book>
    <Chapter>
      <description>  ici un texte  </description>
      <number-hadith> num </number-hadith>
        <contained>  ici un texte  </contained>
    </Chapter>
  </Book>
  <Book>
    <Chapter>
      <description>  ici un texte  </description>
      <number-hadith> num </number-hadith>
        <contained>  ici un texte  </contained>
    </Chapter>
  </Book>
  <Book>
    <Chapter>
      <description>  ici un texte  </description>
      <number-hadith> num </number-hadith>
        <contained>  ici un texte  </contained>
    </Chapter>
  </Book>  
</sahih-muslim>