xmlNewNode is available since version 1.0.
Prototype:
number xmlNewNode(number ns, string name)
Parameters
ns
namespace, if any, otherwise should be null
Description:
Creation of a new node element.
Return value:
Returns a handle to the new node object.