Help with XMLDocument and creating nodes

R

Ron Harter

I am fairly new to XML and MSXML.

I need to create a root node with mutiple namespace (xlmns) entries. I
figured out how to create the root node with a single
namespace entry. The aplication is in Visual Studio 6 using VC++ and MSXML4

Here is a code snippet

// Create a root node for the WebDAV method PROPFIND
var.vt = VT_I4;
var.lVal = NODE_ELEMENT;
bstr1 = SysAllocString(L"d:propfind");
bstr2 = SysAllocString(L"DAV:");
MSXML2::IXMLDOMNode* root = NULL;

hr = pXMLDom->createNode(var, bstr1, bstr2, &root);

How do I add multiple namespace declarations to this node? I have several
to add. I did receive a eply from another news group but
it was in JScript and I was unable to get anything working from that. I need
a nice clear C++ example, my poor little pea brain is suffering from
overload.

Thanks in advance for any help you may give
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top