Contents

attributes

Sets all attributes of the receiver at once, replacing any existing attribute nodes.

Declaration

var attributes: [XMLNode]? { get set }

Parameters

  • attributes:

    An array of Xmlnode objects of kind Attribute. 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.

Discussion

To set attributes in an element node using an NSDictionary object as the input parameter, see setAttributesWith(_:).

See Also

Handling Attributes