Contents Index Topic Contents | ||
Previous Topic: IXMLElement::put_tagName Next Topic: IXMLElement::setAttribute |
IXMLElement::get_parent
HRESULT IXMLElement::get_parent( IXMLElement ** pParent)Every element in the tree, except the root of a document, has a parent. This parent element is AddRef'ed before being returned, and it is up to the caller to call IUnknown::Release on the returned parent element.
- Returns S_OK if successful. Error return values include E_OUTOFMEMORY and E_INVALIDARG.
Can also return S_FALSE if no parent exists (for the root or for a newly created element). pParent is set to zero to prevent errors when scripting agents (such as JScript or VBScript) call this method on behalf of a script.
- pParent
- Indirect pointer in which to return an address of the parent element. The parent element is always nonnull except for the root.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.