It is necessary from the file (here is its text) to parse just what is between the <keyMaterial> </keyMaterial> . How can this be implemented in C ++?
// UPD. I solved the problem in the following way:
// ConsoleApplication11.cpp: определяет точку входа для консольного приложения. // #include <iostream> #include <string> #include <fstream> #include <iterator> int main() { std::ifstream ifs("{1AC815AC-7555-48FB-B768-9E171453FE23}.xml"); { std::string s; s.assign((std::istreambuf_iterator<char>(ifs.rdbuf())), std::istreambuf_iterator<char>()); size_t begin = s.find("<keyMaterial>") + 13; size_t end = s.find("</keyMaterial>"); s = s.substr(begin, end - begin); std::cout << s; ifs.close(); } system("pause"); return 0; }