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="1/1/03">
Any ideas?
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="1/1/03">
Any ideas?