string <span style="font-family: Arial, Helvetica, sans-serif;">m_strXmlContent="dfsafsdadfa";</span>
stringstream strData;
strData <<m_strXmlContent;
fstream oFile;
oFile.open("DoQuery.xml", ios_base::out);
oFile << strData.str().c_str();
oFile.close();版权声明:本文为博主原创文章,未经博主允许不得转载。
原文:http://blog.csdn.net/loveheronly/article/details/46843205