static char readChar(StdXMLReader reader, char entityChar) throws IOException, XMLParseException {
    String str = read(reader, entityChar);
    char ch = str.charAt(0);

    if (ch == entityChar) {
      errorUnexpectedEntity(reader.getSystemID(), reader.getLineNr(), str);
    }

    return ch;
  }
static char readChar(StdXMLReader reader, char entityChar)