xml spy
Previous  Top  Next
XMLData.GetNextChild


See also

Declaration: GetNextChild as XMLData

Return Value
Returns an xml element as XMLData object.

Description

GetNextChild steps to the next child of this element. Before you call GetNextChild you must initialize an internal iterator with XMLData.GetFirstChild.

Check for the last child of the element as shown in the sample below.

Example

   On Error Resume Next
   Set
 objParent = objPlugIn.XMLRoot

   'get elements of all kinds
   Set objCurrentChild = objParent.GetFirstChild(-1)

   Do

      'do something useful with the child


      'step to next child
      Set objCurrentChild = objParent.GetNextChild
   Loop
 Until (Err.Number - vbObjectError = 1503)


Previous  Top  Next

© 2002 Altova