ahh,,
this did the trick,
JourneyNode = objXMLDOM.CreateElement("Journey");
newAtt = objXMLDOM.createAttribute("No");
namedNodeMap = JourneyNode.attributes;
namedNodeMap.setNamedItem(newAtt);
-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 11:22 AM
To: '[EMAIL PROTECTED]'
Subject: [cf-xml] createAttribute
Greetings,
I would have thought this would have worked when adding an attribute
to a new element,
//create new element
JourneyNode = objXMLDOM.CreateElement("Journey");
//add attribute
JourneyNode.createAttribute("Number");
but I'm getting this error,
Failed attempting to find "CREATEATTRIBUTE" property/method on the object
COM error 0x80020006. Unknown name
I'm obviously calling createAttribute wrong,
any ideas out there,
respectfully,
j
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml