Instance Property インスタンスプロパティ

attributes

Sets all attributes of the receiver at once, replacing any existing attribute nodes. レシーバの全ての属性を一度に設定します、あらゆる既存の属性ノードを置き換えます。

Declaration 宣言

@property(copy) NSArray<NSXMLNode *> *attributes;

Parameters パラメータ

attributes

An array of NSXMLNode objects of kind NSXMLAttributeKind. If there are attribute nodes with the same name, the first attribute with that name is used. Send this message with attributes as nil to remove all attributes. 種類NSXMLAttributeKindNSXMLNodeオブジェクトそれらからなるある配列。同じ名前を持つ属性ノードがあるならば、その名前を持つ最初の属性が使われます。このメッセージをattributesnilで送ることで、全ての要素を取り除いてください。

Discussion 議論

To set attributes in an element node using an NSDictionary object as the input parameter, see setAttributesWithDictionary:. ある要素ノードにおける属性をNSDictionaryオブジェクトを入力パラメータとして使って設定するには、setAttributesWithDictionary:を見てください。

See Also 参照

Handling Attributes 属性を取り扱う