XMLData.GetNextChild

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  User Reference > Objects > XMLData >

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)

 


© 2019 Altova GmbH