Microsoft XML SDK 2.6 - XML Reference

baseName Property

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

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 VBScript example assigns the value of a node's baseName property to a string, then displays it:

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

See Also

Applies To: XMLDOMAttribute Object | XMLDOMCDATASection Object | XMLDOMCharacterData Object | XMLDOMComment Object | DOMDocument Object | XMLDOMDocumentFragment Object | XMLDOMDocumentType Object | XMLDOMElement Object | XMLDOMEntity Object | XMLDOMEntityReference Object | XMLDOMNode Object | XMLDOMNotation Object | XMLDOMProcessingInstruction Object | XMLDOMText Object | XTLRuntime Object