Contents

insertChildren(_:at:)

Inserts an array of child nodes at a specified location in the receiver’s list of children.

Declaration

func insertChildren(_ children: [XMLNode], at index: Int)

Parameters

  • children:

    An array of XML node objects to add as children of the receiver.

  • index:

    An integer identifying a position in the receiver’s list of children. An exception is raised if index is out of bounds.

Discussion

Insertion of the node increases the indexes of sibling nodes after it by the count of children.

See Also

Manipulating Child Elements