XMLData.AppendChild
Declaration: AppendChild (pNewData as XMLData)
Description
AppendChild appends pNewData as last child to the XMLData object.
Errors
1500  | The XMLData object is no longer valid.  | 
1505  | Invalid XMLData kind was specified.  | 
1506  | Invalid address for the return parameter was specified.  | 
1507  | Element cannot have Children  | 
1512  | Cyclic insertion - new data element is already part of document  | 
1514  | Invalid XMLData kind was specified for this position.  | 
1900  | Document must not be modified  | 
Example
Dim objCurrentParent As XMLData
Dim objNewChild As XMLData
Set objNewChild = objSpy.ActiveDocument.CreateChild(spyXMLDataElement)
Set objCurrentParent = objSpy.ActiveDocument.RootElement
objCurrentParent.AppendChild objNewChild
Set objNewChild = Nothing