start = index_of(0, src, "<!DOCTYPE"); if(start != -1) {
while((start = index_of(0, src, "<!DOCTYPE")) != -1) {
private string remove_prolog(string src){	int start, close, dp;#if 0	/* this check was added on 07-may-2004 */	if(src == "") {		return src;	}#endif	start = index_of(0, src, "<");	if(src[start..start+2] == "<?x" || src[start..start+2] == "<?X") {		close = index_of(start, src, "?>");		src = src[close+2..];	}	start = index_of(0, src, "<!DOCTYPE");	if(start != -1) {		close = index_of(start, src, ">") + 1;		dp = index_of(start, src, "[");		if(dp != -1 && dp < close) {			close = index_of(start, src, "]>") + 2;		}		src = src[close..];	}	return src;}