static boolean checkLiteral(StdXMLReader reader, String literal) throws IOException {
    for (int i = 0; i < literal.length(); i++) {
      if (reader.read() != literal.charAt(i)) {
        return false;
      }
    }

    return true;
  }
static boolean checkLiteral(StdXMLReader reader, String literal)