Initializer

init(name:stringValue:)

Returns an NSXMLElement object initialized with a specified name and a single text-node child containing a specified value. あるNSXMLElementオブジェクトを返します、指定された名前と単一のテキストノード子で指定値を含むもので初期化されます。

Declaration 宣言

convenience init(name: String, 
     stringValue string: String?)

Parameters パラメータ

name

A string specifying the name of the element. 要素の名前を指定している文字列。

string

The string value of the receiver's text node. レシーバの持つテキストノードの文字列値。

Return Value 戻り値

The initialized NSXMLElement object or nil if initialization did not succeed. 初期化されたNSXMLElementオブジェクト、またはnil、もし初期化がうまくいかなかったならば。

Discussion 議論

The string representation of this object is <name>string</name>. このオブジェクトの文字列表現は、<name>string</name>です。

See Also 参照

Initializing NSXMLElement Objects NSXMLElementオブジェクトを初期化する