文件名称:用msxml写一个xml文档
文件大小:4KB
文件格式:CPP
更新时间:2015-12-18 06:57:03
msxml
用msxml写一个xml文档的源代码 #include "stdafx.h" #import "msxml4.dll" named_guids using namespace MSXML2; inline void linefeed(MSXML2::IXMLDOMDocument2Ptr pXMLDoc, MSXML2::IXMLDOMNode *pRootNode) { pRootNode->appendChild(pXMLDoc->createTextNode("\n")); } inline void addTextElement(MSXML2::IXMLDOMDocument2Ptr pXMLDoc, MSXML2::IXMLDOMNode *pRootNode,LPCTSTR value) { pRootNode->appendChild(pXMLDoc->createTextNode(value)); } .....