xmlFile = "file: xmlPath = "file:
xmlFile = (new java.io.File(xmlFile)).toURL().toString(); xmlPath = (new java.io.File(xmlPath)).toURL().toString();
    public TileSet readTileset(String filename) throws Exception {    	String xmlFile = filename;    	    	// TODO: A problem arrises with xmlPath if the tag sources are absolute        // path...    	        xmlPath = filename.substring(0,                filename.lastIndexOf(File.separatorChar) + 1);        if(xmlFile.indexOf("://") == -1) {        	xmlFile = "file://"+xmlFile;        	xmlPath = "file://"+xmlPath;        }        URL url = new URL(xmlFile);        return unmarshalTilesetFile(url.openStream(), filename);    }