xmlNewProp is available since version 1.0.
Prototype:
number xmlNewProp(number cur, string name, string value)
Parameters
name
the name of the attribute
value
the value of the attribute
Description:
Create a new property carried by a node.
Return value:
Return an attribute handle if succeeded or null if failed.