parser document xml avec dtd
bonjour,
Comment parser un document xml encoding ISO-8859-1 avec dtd externe librairie jdom.
Voici ma méthode
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| public void parse()throws Exception{
SAXBuilder sxb=new SAXBuilder( );
try{
this.document=sxb.build(new File(this.path));
this.racine= this.document.getRootElement();
}
catch(Exception ex){
throw new Exception("Document mal formé");
} |
mais à l'exécution je me trouve à l'exception document mal formé, je pense que le problème vient de dtd. Aidez-moi SVP:cry: