Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create node and attribute

Status
Not open for further replies.

cash0

Programmer
May 23, 2001
22
0
0
AU
This may be easy but I'm damned it I can find a solution. I need to create a node with an attribute. Here's my code so far for creating the node:

Set currentElement = objXML.documentElement
Set currentElement = currentElement.selectSingleNode("/cv/Experience")
Set inode = objXML.createNode("element", "Job", "")
currentElement.appendChild (inode)

Now, I want to attach an attribute called StartDate to this so the XML ends up looking like

<Job StartDate=&quot;1/1/03&quot;>

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top