Hello,

J'ai un soucis, j'ai dans mon xml une balise qui possède le même nom, la même arborescence :
descriptiveKeywords => MD_Keywords => keyword
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
 
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:descriptiveKeywords>
        <gmd:MD_Keywords>
          <gmd:keyword>
            <gco:CharacterString>Utility and governmental services</gco:CharacterString>
          </gmd:keyword>
          <gmd:thesaurusName>
            <gmd:CI_Citation>
              <gmd:title>
                <gco:CharacterString>GEMET</gco:CharacterString>
              </gmd:title>
              <gmd:date>
                <gmd:CI_Date>
                  <gmd:date>
                    <gco:Date>2008-06-01</gco:Date>
                  </gmd:date>
                  <gmd:dateType>
                    <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication" xmlns:ns20="http://www.opengis.net/ogc" xmlns="">publication</gmd:CI_DateTypeCode>
                  </gmd:dateType>
                </gmd:CI_Date>
              </gmd:date>
            </gmd:CI_Citation>
          </gmd:thesaurusName>
        </gmd:MD_Keywords>
      </gmd:descriptiveKeywords>
      <gmd:descriptiveKeywords>
        <gmd:MD_Keywords>
          <gmd:keyword>
            <gco:CharacterString>motsclés1 motsclés2 motsclé3</gco:CharacterString>
          </gmd:keyword>
        </gmd:MD_Keywords>
      </gmd:descriptiveKeywords>
    </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
Je souhaiterai récupérer uniquement les mots clés. Mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
Element childKeyWord = racine.getChild("identificationInfo", GMD_NS)
				.getChild("MD_DataIdentification", GMD_NS)
				.getChild("descriptiveKeywords", GMD_NS)
				.getChild("MD_Keywords", GMD_NS).getChild("keyword", GMD_NS);
Mais ça ne renvoie que : "Utility and governmental services"

Comment faire pour récupérer juste les mots clés ?