473,511 Members | 16,769 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with XMLDocument and creating nodes


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

--
Ron Harter
JP Mobile. Inc.
ro********@jpmobile.com

Jul 20 '05 #1
0 1414

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2098
by: Abra | last post by:
Hi I have a program that works a lot with .NET's XMLDOM. It creates nodes, appends them to one another (creating a tree), then imports nodes from other documents into this main one and appends...
2
1766
by: Arthur Dzhelali | last post by:
I have a two xml files schema is identical. When I read file into dataset and then bind dataset to the form. These are weather files we are getting from weather service. One file has only...
2
10374
by: David Elliott | last post by:
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString"...
8
6149
by: pete | last post by:
Hi there, Can someone explain to me why I can't bind to an XmlDocument but I can bind to an XmlNodeList. It's my understanding that they both implement the IEnumerable interface which is...
1
3625
by: Casper JH Erasmus | last post by:
How do I save the contents of a TreeView to a XML Document?
1
1605
by: David | last post by:
I need to find a good online resource which teaches the use of the XmlDocument framework in more depth than is covered in MS's online doc. I need to create a multi-level XML document like the one...
0
1974
by: Pierre | last post by:
Hi, I'm trying to select specific nodes from a XmlDocument filled with a serialized object and to insert these nodes into another XmlDocument. The object is well serialized (see below). From a...
2
3131
by: James Fifth | last post by:
Hello and God Bless, I am stumped trying to get a simple xml database replacing certain data with other data programmatically. This is what my xml looks like. ...
1
1397
by: TheDude5B | last post by:
Hi, I have the following code which accesses an XML document and then displays the document using XSL....
4
3260
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... We've got a lot of places in our code where we read relatively small xml user preference blocks. Currently that's creating a new XmlDocument in every spot. I was thinking we might see...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.