static boolean verifyExtension(String path){
        String extension = path.substring(path.length()-4, path.length());
        if (extension.equals(".xml"))
            return true;
        return false;
    }