#include #include #include #include using namespace std; int main(int argc, char *argv[]) { /* * Читаем xml файл в переменную xml */ string xml; char c; while ((c = getc(stdin)) != EOF) xml += c; /* * В цикле просматриваем всю xml */ for (size_t i = 0, max_i = xml.length(); i < max_i; i++) { cout << xml[i]; } return EXIT_SUCCESS; }