Bonjour

J'ai un souci avec mon programme :

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
 
import java.io.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.filter.*;
import java.util.List;
import java.util.Iterator;
/**
 *
 *
 */
public class parser1 {
 
    public static void listChildren(Element current, int depth) {
 
        List children = current.getChildren();
        Iterator iterator = children.iterator();
        while (iterator.hasNext()) {
            Element child = (Element)iterator.next();
            System.out.println(child.getChild("title").getText());
        }
 
    }
 
    public static void main(String[] args) {
 
        SAXBuilder builder = new SAXBuilder();
 
        try {
            Document doc = builder.build("fichier.xml");
            Element root = doc.getRootElement();
 
        }
        // indicates a well-formedness error
        catch (JDOMException e) {
            System.out.println("Essai.xml is not well-formed.");
            System.out.println(e.getMessage());
        }
        catch (IOException e) {
            System.out.println(e);
        }
}}
Je veux chercher le résultat dans la balise title.Il me renvoie aucune erreur mais ne m'affiche rien.(ce que je veut obtenir en rouge).

Le code source
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
20
21
22
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <!--  @meta@--> 
      <meta name="keywords" content="OMIM, Online Mendelian Inheritance in 
      <meta name="robots" content="index,nofollow,NOARCHIVE" /> 
      <meta name="ncbi_app" content="entrez" /> 
      <meta name="ncbi_db" content="omim" /> 
      <meta name="ncbi_term" content="gpcr-168" /> 
      <meta name="ncbi_resultcount" content="0" /> 
      <meta name="ncbi_op" content="search" /> 
      <meta name="ncbi_pdid" content="emptyresult" /> 
      <meta name="ncbi_sessionid" content="396A0F3DB8542F01_0135SID" /> 
      <meta name="ncbi_stat" content="false" /> 
      <meta name="ncbi_hitstat" content="false" /> 
      <!--  @title@  --> 
      <title>No items found - OMIM Results  </title> 
 <!--  Common JS and CSS 
  --> 
  <script type="text/javascript">var ncbi_startTime = new Date();</script> 
  <link type="text/css" rel="stylesheet" href="/portal/css/ncbi_test.css" /> 
 <script type="text/javascript">

merci d'avance.