RemoveChildElements
Syntax 3
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 |
pbdom_element_name.RemoveChildElements(string strElementName, string strNamespacePrefix, string strNamespaceUri) |
|
Argument |
Description |
|---|---|
|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
|
strElementName |
The name of the child PBDOM_ELEMENT objects to |
|
strNamespacePrefix |
Prefix of the namespace of the child |
|
strNamespaceUri |
URI of the namespace of the child PBDOM_ATTRIBUTE |
Return value
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.
See also