public static boolean isXMLWhitespace(final char c) {
		// the following if is faster than switch statements.
		// seems the implicit conversion to int is slower than
		// the fall-through or's
		if (c==' ' || c=='\n' || c=='\t' || c=='\r' ){
			return true;
		}
		return false;
	}