public String toXml() {
		
		String result = "<" + factory.getCache().tableName(type) + ">";
		
		Map<String, Object> modelFields = fields();
		Set<String> keySet = modelFields.keySet();
		
		String cA = "CreatedAt";
		String uA = "UpdatedAt";
		
		for (String k : keySet)
			
		if (!k.equals(cA) && !k.equals(uA))
		result += "\n<" + k + ">" + modelFields.get(k) + "</" + k + ">";
			
		Set<String> fetchedKeySet = fetched.keySet();
		
		for (String k : fetchedKeySet) {
			
			String innerResult = "";
			for (Model m : fetched.get(k)) innerResult += "\n"+m.toXml();
			
			if (factory.getCache().isAnArrayConnection(type, k))
				result += "\n<" + k + ">" + innerResult + "\n</" + k + ">";
				
			else result += "\n" + innerResult;
		}
			
		result += "\n</" + factory.getCache().tableName(type) + ">";
		
		return result;
	}