xmlSetNsProp is available since version 1.0.
Prototype:
number xmlSetNsProp(number node, number ns, string name, string value)
Parameters
value
the attribute value
Description:
Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked
Return value:
Returns the attribute handle or null if failed.