Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNode attributes Pro...     XMLDOMNode childNodes Pro...     XMLDOMNode Object    
Web Workshop  |  XML (Extensible Markup Language)

baseName Property


Returns the base name for the name qualified with the namespace.

Syntax

strValue = oXMLDOMNode.baseName

Remarks

String. The property is read-only. It returns the right-hand side of a namespace qualified name. For example, it returns "yyy" for the element <xxx:yyy>. It always returns a non-empty string.

This member is an extension of the W3C DOM.

Example

The following example assigns the value of a node's baseName property to a string, then displays it:

Dim xmlDoc
Dim MyStr

Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
MyStr = xmldoc.documentElement.childNodes.item(2).baseName
MsgBox MyStr

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime


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.