standard.lib.xml.xmlNewProp

xmlNewProp is available since version 1.0.

Prototype:

number xmlNewProp(number cur, string name, string value)

Parameters

node
the holding node
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.