Declaration: GetFirstChild (nKind as SPYXMLDataKind) as XMLData
Return Value
Returns an XML element as XMLData object.
Description
GetFirstChild initializes a new iterator and returns the first child. Set nKind = -1 to get an iterator for all kinds of children.
REMARK: The iterator is stored inside the XMLData object and gets destroyed when the XMLData object gets destroyed. Be sure to keep a reference to this object as long as you want to use GetCurrentChild, GetNextChild or EraseCurrentChild.
Errors
1500 |
The XMLData object is no longer valid. |
|
1501 |
Invalid XMLData kind was specified. |
|
1504 |
Element has no children of specified kind. |
|
1510 |
Invalid address for the return parameter was specified. |
Example
See the example at XMLData.GetNextChild.