static void skipComment(StdXMLReader reader) throws IOException, XMLParseException {
    if (reader.read() != '-') {
      errorExpectedInput(reader.getSystemID(), reader.getLineNr(), "<!--");
    }

    int dashesRead = 0;

    for (; ; ) {
      char ch = reader.read();

      switch (ch) {
        case '-':
          dashesRead++;
          break;

        case '>':
          if (dashesRead == 2) {
            return;
          }

        default:
          dashesRead = 0;
      }
    }
  }
static void skipComment(StdXMLReader reader)