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

addAttribute:

Adds an attribute node to the receiver. ある属性ノードをレシーバに加えます。

Declaration 宣言

- (void)addAttribute:(NSXMLNode *)attribute;

Parameters パラメータ

anAttribute

An XML node object representing an attribute. If the receiver already has an attribute with the same name, anAttribute replaces the old attribute. ある属性を表しているXMLノードオブジェクト。レシーバが既に同じ名前での属性を持つならば、anAttributeは古い属性を置き換えます。

Discussion 議論

The order of multiple attributes is preserved if the NSXMLPreserveAttributeOrder option is specified when the element is created. 複数の属性の順番は保全されます、もしNSXMLPreserveAttributeOrderオプションが、その要素が作成されるときに指定されるならば。

See Also 参照

Handling Attributes 属性を取り扱う