public XMLNode setName(String name) {
		if(name == null || name.isEmpty()) {
			throw new TXMLException("Names of nodes cannot be null or empty");
		} else if(name.matches("[0-9" + TXML.PUNC + "](.+)?")) {
			throw new TXMLException("Name '" + name + "'is invalid,"
					+ " names of nodes cannot start with numbers or puncuation characters");
//		} else if(name.toString().toUpperCase().startsWith("XML")) {
//			throw new TXMLException("Name '" + name + "'is invalid,"
//					+ " names of nodes cannot start with the letters 'xml'");
		} else if(name.contains(" ")) {
			throw new TXMLException("Name '" + name + "'is invalid,"
					+ " names of nodes cannot contain spaces");
		}
		_name = name;
		return this;
	}