std::stringstream ss;
char c[400];
XMLDocument Doc;
XMLNode * pRoot = Doc.NewElement("root");
Doc.InsertFirstChild(pRoot);
XMLElement * pElement = Doc.NewElement("primes");
for (const auto &it : First_interval) {
ss << it;
}
for (const auto &it : Second_interval) {
ss << it;
}
for (int i = 0,j=3; i < 400; i++,j+=4) {
if(c[i]!=' ')ss >> c[i];
if(j<400)c[j] = ' ';
}
pElement->SetText(c);