NS Gopikrishnan - 2010-11-23

Hi all,
I have the following java code to initialize a jaxe editor :

jaxe.Preferences.chargerPref();
//System.out.println(new File ("config/JaxeConfig.xml").exists());
jaxeDocument = new JaxeDocument ("config/JaxeConfig.xml");
jaxeTextPane = new JaxeTextPane (jaxeDocument, this);
jaxeDocument.setTextPane(jaxeTextPane);
//jaxeDocument.nouveau();
try {
jaxeDocument.lire(xmlFile.toURL());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
this.add(jaxeTextPane);

But I always get an error message for any XML that I load using jaxeDocument.lire(xmlFile) saying :
No config file found for <rootelement>

But I have initialized the JaxeDocument() with the configuration file as you can see. And it exists too. (Even otherwise from where else it is getting the root element name)

Thanks !