Node.attribute

Creates a new attribute and attaches it to the receiver.

struct Node
attribute
(
string name
,
string value
)

Parameters

name string

the name of the attribute

value string

the value of the attribute

Return Value

Type: Node

the newly created attribute

Meta