Manual
API
setAttribute ( string $name, string $value )
name
value
Adds or sets an attribute in the current node to the specified value.