Instance Method インスタンスメソッド

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. レシーバの子として加えるXMLノードオブジェクトからなるある配列。

index

An integer identifying a position in the receiver's list of children. An exception is raised if index is out of bounds. レシーバのもつ子それらからなるリストにおいてある位置を識別している整数。例外が引き起こされます、もしindexが境界外ならば。

Discussion 議論

Insertion of the node increases the indexes of sibling nodes after it by the count of children. ノードの挿入は、それの後の親類ノードのインデックスをchildrenの計数だけ漸増します。

See Also 参照

Manipulating Child Elements 子要素を操作する