Hi All,
My goal is to add a new attribute ( DataType = int) to an Element. I'm using
MSXML version2.0 . When i'm trying to add an attribute to element using

Dim oEle as IXMLDOMElement
Dim oAttr as IXMLDOMAttribute
'some code to create a Root

'some code to create an element as child element of the Root

Set oAttr = oDoc.createAttribute("Category")
oAttr.DataType ="int"
oAttr.Value = 4
oEle.setAttributeNode oAttr

giving an Automation Error at oAttr.DataType ="int".

Can anyone help me with this. I would like to know how to add an attribute(
particular DataType) to an element.