473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

DOM and C Language doubt.

I have the following :

-------------
hr = IXMLDOMDocument_createElement(WriteSession.pXMLDoc , nodename,
(void *)&tmpnode);
assert(SUCCEEDED(hr));

hr = IXMLDOMElement_setAttribute(tmpnode, attname, Fieldname);
assert(SUCCEEDED(hr));
--------------

but the setAttribute part gives the following error:

-------------
error C2039: 'setAttribute' : is not a member of 'IXMLDOMNodeVtbl'
c:\program files\msxml 4.0\inc\msxml2.h(1600) : see declaration of
'IXMLDOMNodeVtbl'
Error executing cl.exe.
------------

the IXMLDOMNodeVtbl shows this part :

--------------
#if defined(__cplusplus) && !defined(CINTERFACE)

MIDL_INTERFACE("2933BF86-7B36-11d2-B20E-00C04F983E60")
IXMLDOMElement : public IXMLDOMNode
{
public:
...
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE
setAttribute(
/* [in] */ BSTR name,
/* [in] */ VARIANT value) = 0;
------------------
Does this mean that this setAttribute thing can be used only with C++
and not with C?

Please let me know any mistakes you might notice that I am not able to
see.
thanks in advance.
-Scam.

Apr 25 '06 #1
3 1342
Can't answer re that imnplementation but one quick note: DON'T use
createElement, createAttribute, or setAttribute -- switch to the
namespace-aware forms of those calls. The non-NS version should
***ONLY*** be used by code written before DOM Level 2 became avaialble.
Apr 25 '06 #2
When did DOM level 2 become available? I am trying to introduce
something to a code that was written more than an year back. Any help
would be useful.

Apr 26 '06 #3
Scamjunk wrote:
When did DOM level 2 become available?


See http://www.w3.org/DOM/DOMTR for a list of all the DOM
Recommendations and their dates. Most of Level 2 dates back to 2000.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Apr 26 '06 #4

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

Similar topics

2
by: popov | last post by:
I try with no luck to use python in a simple html page: <html> <body> <script language="Python"> window.alert('test') window.document.write('test') </script> </body> </html>
49
by: Ville Vainio | last post by:
I don't know if you have seen this before, but here goes: http://text.userlinux.com/white_paper.html There is a jab at Python, though, mentioning that Ruby is more "refined". -- Ville...
1
by: Andrew James | last post by:
Gentlemen, I'm currently in the process of designing a language which will be used to specify sets of files on a WebDAV server, encoded in a URL. The aims of the language are to (in no particular...
26
by: HackingYodel | last post by:
Hello all! I'm learning to program at home. I can't imagine a better language than Python for this. The ideal situation, for me, would be to study two languages at the same time. Probably...
15
by: Birahim FALL | last post by:
Hi, I'm very fresh to PostgreSQL, coming from Oracle. I want to developp web applications based on apache and postgresql. Is there an equivalent of OWA server (Oracle Web Application server) for...
42
by: Eric Gunnerson [MS] | last post by:
You may download the new specification at the C# Developer Center (http://msdn.microsoft.com/vcsharp/language). There is a discussion forum for the C# language on that same page. If you don't...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
46
by: ajba74 | last post by:
Hi fellows, I am reading some books to learn the C programming language, and sometimes I have the feeling that when somebody becomes a C expert, he must learn a more modern and object-oriented...
3
by: albert.neu | last post by:
Hello! What is the difference between "library parts" of C99 and "language parts" of C99. see...
22
by: fel | last post by:
2000 LDM 0, 1004 // R0 = a // 2004 LDM 2, 1008 // R2 = b // 2008 MUL 0, 2 // R0 = a * b // 2010 LDM 1, 1012 // R1 = c // 2014 LDM 2, 1016 // R2 = d // 2018 MUL 1, 2 // R1 = c * d // 2020 SUB 0,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
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...

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.