GetName
Description
Obtains the name of the current PBDOM_OBJECT. The returned string
depends on the type of DOM Object that is contained within a
PBDOM_OBJECT.
DOM Object Type |
Return Value |
---|---|
PBDOM_DOCTYPE |
“#document” |
PBDOM_ELEMENT |
The local tag name of the element, without any For example, if the element is: Also, if the tag name of the For example, if the element <MyMusic:CD xmlns:MyMusic=, then the string “http://www.MyMusicDiscs.com”/> |
PBDOM_ATTRIBUTE |
The local name of the attribute itself, without a For example, if the element with the If the name of the For example, if the “http://www.MyMusicDiscs.com” |
PBDOM_CDATA |
“#cdata-section” |
PBDOM_COMMENT |
“#comment” |
PBDOM_DOCTYPE |
The name that was given to the doctype object For example, if the DOCTYPE declaration is: |
PBDOM_PROCESSINGINSTRUCTION |
The name that was given to the processing For example, if the processing |
PBDOM_TEXT |
“#text” |
Syntax
1 |
pbdom_object_name.GetName() |
Argument |
Description |
---|---|
pbdom_object_name |
The name of the PBDOM_ OBJECT |
Return value
The following table lists the return values, based on the type of
DOM Object contained within the PBDOM_OBJECT:
Throws
EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE — If this PBDOM_OBJECT is
not a reference to an object derived from PBDOM_OBJECT.
EXCEPTION_MEMORY_ALLOCATION_FAILURE — Insufficient memory was
encountered while executing this method.
Usage
A PBDOM_OBJECT cannot be instantiated directly.
See also