Contents Index Topic Contents | ||
Previous Topic: IXMLElement::removeAttribute Next Topic: IXMLElement::get_type |
IXMLElement::get_children
HRESULT IXMLElement::get_children( IXMLElementCollection * * ppChildren)Retrieves the collection of an element's children.
- Returns one of the following values:
S_OK Success. E_FAIL No children are present. E_OUTOFMEMORY Not enough memory to process this request. S_FALSE If no children exist, ppChildren is set to NULL.
- ppChildren
- Indirect pointer in which to return an address of the element collection. The ppChildren parameter is NULL if no children are present.
The collection allows the application to make queries about the size of the collection as well as enumerate through the children or access any of them by index. If no children exist, ppChildren is set to NULL and the return code is S_FALSE. The caller must call (ppChildren)->Release when it is done using this collection. Further discussion of IXMLElementCollection is available later in this document.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.