standard.lib.xml.xmlSetProp

xmlSetProp is available since version 1.0.

Prototype:

number xmlSetProp(number node, string name, string value)

Parameters

node
the node
name
the attribute name
value
the attribute value

Description:

Set (or reset) an attribute carried by a node. If name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope.

Return value:

Returns the attribute handle or null if failed.