Solved

XML - Adding Attribrutes to a note

Posted on 2003-10-21
2
125 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

738 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