-
How to set the DataType on DOMAttribute
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks