Click to return to the XML (Extensible Markup Language) home page    
XMLDOMAttribute value Pro...     XMLDOMAttribute Object    
Web Workshop  |  XML (Extensible Markup Language)

name Property


Contains the attribute name.

Syntax

strValue = oXMLDOMAttribute.name

Remarks

String. The property is read-only. It returns the name of the attribute. The value is the same as the XMLDOMNode object's nodeName property.

Example

The following example creates an XMLDOMAttribute object from the first attribute of the root, then displays the value of its name:

Dim xmlDoc
Dim root
Dim objDOMatt

Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
Set root = xmlDoc.documentElement
Set objDOMatt = root.attributes.item(0)
MsgBox (objDOMatt.name)

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMAttribute


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.