public static TreeMap<String, String> property2TreeMap(String xmlFilename){
    	java.util.Properties props = new java.util.Properties();
        
        try {
			props.loadFromXML(new FileInputStream(xmlFilename));
        } catch (InvalidPropertiesFormatException e) {
			e.printStackTrace();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
        
        Map<String, String> unsortMap = new HashMap<String, String>();
		for(Map.Entry<Object, Object> projectEntry: props.entrySet()){
			unsortMap.put(projectEntry.getKey().toString(), projectEntry.getValue().toString());
		}
		
		TreeMap<String, String> treeMap = new TreeMap<String, String>(unsortMap);
		return treeMap;
    }