Contents

addChild(_:)

Adds a child node at the end of the receiver’s current list of children.

Declaration

func addChild(_ child: XMLNode)

Parameters

  • child:

    An XML node object to add to the receiver’s children.

Discussion

The new node has an index value that is one greater than the last of the current children.

See Also

Manipulating Child Elements