🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.xml
Article #278

Re: ���д��ð��

#278
From: <Test/>
Date: Tue, 17 Nov 2009 00:54
31 lines
1621 bytes
���õ�ԭʼ��COM�ӿڻ�������ָ�룿

������һ��ʹ��ԭʼCOM�ӿڵĴ��룺
MSXML2::IXMLDOMDocumentPtr pDoc;
MSXML2::IXMLDOMElementPtr  xmlRoot ;

    //����DOMDocument����
HRESULT hr = pDoc.CreateInstance(__uuidof(MSXML2::DOMDocument40));
if(!SUCCEEDED(hr))
{  
  MessageBox("�޷�����DOMDocument���������Ƿ�װ��MS XML Parser ����
��!");
  return ;
}

//��ڵ�����ΪBook
//����Ԫ�ز���ӵ��ĵ���
xmlRoot=pDoc->createElement((_bstr_t)"Book");

//��������
xmlRoot->setAttribute("id",(const char *)m_strId);
pDoc->appendChild(xmlRoot);
MSXML2::IXMLDOMElementPtr pNode;
�� �� dusea (���ڱ���) �Ĵ������ᵽ: ��
: msxml2.dll

--
Happy XMLing


�� ��Դ:��ˮľ���� http://newsmth.net��[FROM: 219.232.52.*]
Technical Details
Message-ID: <4j2ihV$FK5@newsmth.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.neu.edu.cn!news.shec6.edu.cn!news.newsmth.net!NEWSMTH

Show Full Headers
Complete Article Headers
X-Google-Thread: f7ebf7e2af,79ab6bbec7bdd6b9,start
X-Google-Attributes: gidf7ebf7e2af,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.neu.edu.cn!news.shec6.edu.cn!news.newsmth.net!NEWSMTH
From: thinkhy@newsmth.net-SPAM.no (<Test/>)
Newsgroups: cn.bbs.comp.xml
Subject: Re: ���д��ð��
Date: 17 Nov 2009 00:54:08 GMT
Organization: ˮľ����
Message-ID: <4j2ihV$FK5@newsmth.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: XML/r/M.1258419247.Q0