How to set the DataType on DOMAttribute

webmasterbeta

New Member
Hi All,My goal is to add a new attribute ( DataType = int) to an Element. I'm usingMSXML version2.0 . When i'm trying to add an attribute to element usingDim oEle as IXMLDOMElementDim oAttr as IXMLDOMAttribute'some code to create a Root'some code to create an element as child element of the RootSet oAttr = oDoc.createAttribute("Category")oAttr.DataType ="int"oAttr.Value = 4oEle.setAttributeNode oAttrgiving 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.
 
Back
Top