1、
CXml * xml = new CXml();
xml->Create(_T("Data"), _T("UTF-8"));
CXmlNodePtr root = xml->GetRoot(); 根节点
CXmlNodePtr nodeDatum = root->NewChild(_T("Vertex")); 创建节点
nodeDatum->SetAttribute(_T("SourceName"), sca->m_strWell); 增加节点属性
xml->Save( CString(filename) );
xml->Close();
delete xml;
xml = NULL;