Microsoft XML 2.5 SDK


 

baseName Property

[This is preliminary documentation and subject to change.]

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

XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime