GetChildElement Syntax 2
Description
Returns the first child PBDOM_ELEMENT object, matching the name
and namespace indicated by the method parameter contained in the
PBDOM_ELEMENT object from which the method is invoked.
Syntax
|
1 |
pbdom_element_name.GetChildElement(string strElementName, string strNamespacePrefix, string strNamespaceUri) |
|
Argument |
Description |
|---|---|
|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
|
strElementName |
The local name of the child PBDOM_ELEMENT object |
|
strNamespacePrefix |
The prefix of the namespace of the child |
|
strNamespaceUri |
The URI of the namespace of the child |
Return value
PBDOM_ELEMENT. The first child PBDOM_ELEMENT object whose name
and namespace information match the values of the method parameters.
If no PBDOM_ELEMENT object exists for the specified name and namespace
information, the GetChildElement method returns a value of
null.
Throws
EXCEPTION_INVALID_ARGUMENT — If any of the input arguments is
invalid, for example, null.
EXCEPTION_INVALID_NAME — If the input Element Name or input
namespace prefix or namespace URI is invalid.
See also