怎么用msxml 生成

angel_sino 2005-08-25 08:42:14
请问,怎么用msxml 生成<?xml version='1.1' ?>
...全文
196 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
windyloft 2005-08-26
  • 打赏
  • 举报
回复
loadXML("\<?xml version='1.1' ?\>");
masterz 2005-08-25
  • 打赏
  • 举报
回复
IXMLDOMDocumentPtr pXMLDoc(__uuidof(DOMDocument));
//Add the Process instruction to the top of the document, "Optional"
IXMLDOMProcessingInstructionPtr pProInstrut= pXMLDoc->createProcessingInstruction(
_T("xml"),
_T("version='1.1'") );
ASSERT( pProInstrut != NULL );
ASSERT( pXMLDoc->appendChild( pProInstrut ) != NULL );

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧