} else if (encoding == 3) { while (so <= offset) {
} else if (encoding == FORMAT_UTF_16BE) { while (so <= offset-2) {
	private String formatLineNumber() {		int so = docOffset;		int lineNumber = 1;		int lineOffset = 0;		int end = offset;		if (encoding < 3) {			while (so <= offset) {				if (XMLDoc[so] == '\n') {					lineNumber++;					lineOffset = so;				}				//lineOffset++;				so++;			}			lineOffset = offset - lineOffset;		} else if (encoding == 3) {			while (so <= offset) {				if (XMLDoc[so + 1] == '\n' && XMLDoc[so] == 0) {					lineNumber++;					lineOffset = so;				}				so += 2;			}			lineOffset = (offset - lineOffset) >> 1;		} else {			while (so <= offset) {				if (XMLDoc[so] == '\n' && XMLDoc[so + 1] == 0) {					lineNumber++;					lineOffset = so;				}				so += 2;			}			lineOffset = (offset - lineOffset) >> 1;		}		return "\nLine Number: " + lineNumber + " Offset: " + lineOffset;	}