Solved

XML - Adding Attribrutes to a note

Posted on 2003-10-21
2
120 Views
Last Modified: 2010-05-03
Hi,

Current I have the following

        Set objParameterIdAttrib = oXML.createNode(2, "id", sIDs(iLooper))                                '---- A
        Set objParameterValueAttrib = oXML.createNode(2, "value", sValues(iLooper))                 '---- B
        Set objNode = oXML.createNode(1, "Parameter", "")                                                      '---- C
   
I wish to know how to add the Attributes A and B to Node C

How can i do this???? Everything i have tried i wrong.
0
Comment
Question by:cossy74
2 Comments
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9597403
Private Declare Function xdocument_add_attr Lib "xmllab_dll.dll" (ByVal XML_CURSOR As Long,ByVal Name As String,ByVal Value As String) As Long


0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 250 total points
ID: 9600613
objNode.Append objParameterIdAttrib
objNode.Append objParameterValueAttrib

Anthony
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now