RemoveNamespaceDeclaration
Description
Removes the specified PBDOM_NAMESPACE declaration for a
PBDOM_ELEMENT object. If the namespace prefix is an empty string,
RemoveNamespaceDeclaration removes a default namespace
declaration.
Syntax
|
1 |
pbdom_element_name.RemoveNamespaceDeclaration(string strNamespacePrefix, string strNamespaceUri) |
|
Argument |
Description |
|---|---|
|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
|
strNamespacePrefix |
Prefix of the namespace declaration to |
|
strNamespaceUri |
URI of the namespace declaration to |
Return value
Boolean.
Returns true if the namespace has been removed from the
PBDOM_ELEMENT object, and false otherwise.
Throws
EXCEPTION_INVALID_ARGUMENT — If any of the input parameters is
invalid, for example, null.
EXCEPTION_INVALID_NAME — If the namespace prefix or URI is
invalid, or both the namespace prefix and URI are invalid as a
pair.
EXCEPTION_MEMORY_ALLOCATION_FAILURE — If any memory allocation
failure occurred during the execution of this method.
See also