depth); return; }
depth); } else throw new ParseException( "XML decl error: Invalid Encoding" + formatLineNumber()); if (r.skipChar(ch_temp)) return;
	private void matchISOEncoding()throws ParseException{		if ((r.skipChar('s') || r.skipChar('S'))				&& (r.skipChar('o') || r.skipChar('O'))				&& r.skipChar('-') && r.skipChar('8')				&& r.skipChar('8') && r.skipChar('5')				&& r.skipChar('9') && r.skipChar('-'))				{		    if (encoding <= FORMAT_UTF_16LE) {				if (must_utf_8)					throw new EncodingException(							"Can't switch from UTF-8"									+ formatLineNumber());				if (r.skipChar('1')){				 if (r.skipChar(ch_temp)) {				     encoding = FORMAT_ISO_8859_1;				     r = new ISO8859_1Reader();				     writeVTD(temp_offset, 10,							TOKEN_DEC_ATTR_VAL,							depth);				 } else if (r.skipChar('0') && r.skipChar(ch_temp)){				     encoding = FORMAT_ISO_8859_10;				     r = new ISO8859_10Reader();				     writeVTD(temp_offset, 11,								TOKEN_DEC_ATTR_VAL,								depth);				 } else 				     throw new ParseException(								"XML decl error: Invalid Encoding"										+ formatLineNumber());												 return;				}else if (r.skipChar('2') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_2;				    r = new ISO8859_2Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('3') && r.skipChar(ch_temp)){				    r = new ISO8859_3Reader();				    encoding = FORMAT_ISO_8859_3;				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				   // break;				}else if (r.skipChar('4') && r.skipChar(ch_temp)){				    r = new ISO8859_4Reader();				    encoding = FORMAT_ISO_8859_4;				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('5') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_5;				    r = new ISO8859_5Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('6') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_6;				    r = new ISO8859_6Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('7') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_7;				    r = new ISO8859_7Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('8') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_8;				    r = new ISO8859_8Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}else if (r.skipChar('9') && r.skipChar(ch_temp)){				    encoding = FORMAT_ISO_8859_9;				    r = new ISO8859_9Reader();				    writeVTD(temp_offset, 10,								TOKEN_DEC_ATTR_VAL,								depth);				    return;				}											} else				throw new ParseException(						"XML decl error: Can't switch encoding to ISO-8859"								+ formatLineNumber());		}		throw new ParseException(				"XML decl error: Invalid Encoding"						+ formatLineNumber());	}