XMLData.GetNextChild
Declaración GetNextChild as XMLData
Valor devuelto
Devuelve un elemento XML como objeto XMLData.
Descripción
GetNextChild pasa al siguiente secundario de este elemento. Antes de llamar a GetNextChild debe inicializar un iterador interno con XMLData.GetFirstChild.
Busque el último secundario del elemento tal y como muestra el ejemplo siguiente.
Ejemplo
On Error Resume Next
Set objParent = objPlugIn.XMLRoot
'obtener elementos de todos los tipos
Set objCurrentChild = objParent.GetFirstChild(-1)
Do
'hacer algo útil con el secundario
'pasar al siguiente secundario
Set objCurrentChild = objParent.GetNextChild
Loop Until (Err.Number - vbObjectError = 1503)