public static Map<String, String> getAttirbutes(String str) {
		Map<String, String> result = new HashMap<String, String>();
		StringTokenizer eTokens = new StringTokenizer(str, "=");
		if(!eTokens.hasMoreTokens()) {
			return result;
		}
		String rest = eTokens.nextToken();
		while (eTokens.hasMoreTokens()) {
			if (rest.length() == 0) {
				rest = eTokens.nextToken();
				continue;
			}
			String name = setSimpleAttributes(result, rest);

			String vSrc = eTokens.nextToken();
			switch (vSrc.charAt(0)) {
			case '"':
				rest = getValue(vSrc, "\"", result, name, eTokens);
				break;

			case '\'':
				rest = getValue(vSrc, "'", result, name, eTokens);
				break;

			default:
				StringTokenizer tokens = new StringTokenizer(vSrc);
				int len = tokens.nextToken().length();
				result.put(name, vSrc.substring(0, len));
				rest = vSrc.substring(len);
			}

		}
		setSimpleAttributes(result, rest);

		return result;
	}