public void load(){ //Maybe you have to change the path to fit your file system importNodeFromFile(getPathToHomeDirectory()+"\\Downloads\\cherry_new.dtd","model/x-grogra-dtd"); }