PBDOM_ELEMENT:
RemoveChildElements Syntax 3 method
Description
Removes from the current PBDOM_ELEMENT object all
child PBDOM_ELEMENT objects (one level deep) that have
the specified local name and belong to the specified namespace.
Syntax
1 |
<span>pbdom_element_name.</span>RemoveChildElements(string <span>strElementName</span>, string <span>strNamespacePrefix</span>, string <span>strNamespaceUri</span>) |
Argument |
Description |
---|---|
pbdom_element_name |
The name of a PBDOM_ELEMENT |
strElementName |
The name of the child PBDOM_ELEMENT |
strNamespacePrefix |
Prefix of the namespace of the child |
strNamespaceUri |
URI of the namespace of the child PBDOM_ATTRIBUTE objects |
Return Values
Boolean. Returns true if
any child PBDOM_ELEMENT object was removed and false otherwise.
Throws
EXCEPTION_INVALID_ARGUMENT – If
any of the input parameters is invalid, for example, null.
EXCEPTION_INVALID_NAME – If
the input element name or namespace prefix or URI is invalid. The
only exception is if the input element name is an empty string,
in which case all element names match.
EXCEPTION_MEMORY_ALLOCATION_FAILURE – If
there was any memory allocation failure during the execution of
this method.