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.