PBDOM_OBJECT:
GetName method
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 Also, if the tag name of the element contains a namespace |
|
PBDOM_ATTRIBUTE |
The local name of the attribute itself, For example, if the element with the attribute is: If the name of the attribute contains a namespace prefix, For example, if the element with an attribute is: |
|
PBDOM_CDATA |
“#cdata-section” |
|
PBDOM_COMMENT |
“#comment” |
|
PBDOM_DOCTYPE |
The name that was given to the doctype For example, if the DOCTYPE declaration is: |
|
PBDOM_ |
The name that was given to the processing instruction For example, if the processing instruction definition is: |
|
PBDOM_TEXT |
“#text” |
Syntax
|
1 |
<span>pbdom_object_name.</span>GetName() |
|
Argument |
Description |
|---|---|
|
pbdom_object_name |
The name of the PBDOM_ OBJECT |
Return Values
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.