PBDOM_ELEMENT:
GetAttributeValue Syntax 3 method
Description
Returns the string value of the PBDOM_ATTRIBUTE object
(within a PBDOM_ELEMENT object) with the specified name
and within the specified namespace. If no such PBDOM_ATTRIBUTE
exists, the default value is returned.
Syntax
1 |
<span>pbdom_element_name.</span>GetAttributeValue( string <span>strAttributeName</span>, string <span>strNamespacePrefix</span>, string <span>strNamespaceUri</span>, string <span>strDefaultValue</span>) |
Argument |
Description |
---|---|
pbdom_element_name |
The name of a PBDOM_ELEMENT |
strAttributeName |
The name of the attribute whose value |
strNamespacePrefix |
The prefix of the namespace of the PBDOM_ATTRIBUTE whose |
strNamespaceUri |
The URI of the namespace of the PBDOM_ATTRIBUTE whose |
strDefaultValue |
Default string value to return if the |
Return Values
String. The string value of the PBDOM_ATTRIBUTE
object specified in strAttributeName. If no
such object exists, the GetAttributeValue method
returns the string provided in strDefaultValue.
Throws
EXCEPTION_INVALID_ARGUMENT – If
any of the input arguments is invalid, for example, null.
EXCEPTION_MEMORY_ALLOCATION_FAILURE – If
there was any memory allocation failure during the execution of
this method.
EXCEPTION_INVALID_NAME – If
the input attribute name or namespace prefix or namespace URI is
invalid.