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

child(at:)

Returns the child node of the receiver at the specified location. 指定された位置での、レシーバの子ノードを返します。

Declaration 宣言

func child(at index: Int) -> XMLNode?

Parameters パラメータ

index

An integer specifying a node position in the receiver's array of children. If index is out of bounds, an exception is raised. レシーバのもつ子それらからなる配列の中のあるノード位置を指定しているある整数。indexが領域外ならば、例外が引き起こされます。

Return Value 戻り値

An NSXMLNode object or nil f the receiver has no children. NSXMLNodeオブジェクト、またはnil、もしレシーバが子を持たないならば。

Discussion 議論

The receiver should be an NSXMLNode object representing a document, element, or document type declaration. The returned node object can represent an element, comment, text, or processing instruction. レシーバは、ある書類、要素、または書類型宣言を表しているNSXMLNodeオブジェクトであるべきです。返されるノードオブジェクトは、ある要素、コメント、テキスト、または処理命令を表すことができます。

See Also 参照

Navigating the Tree of Nodes ノードのツリーを閲覧する