number xmlNewDocNode(number doc, number ns, string name, string content)
Parameters
doc
the XML document
ns
the namespace handle (if any)
content
the XML content (if any)
Description:
Creation of a new node element within a document. @ns and @content are optional (NULL).
NOTE: content is supposed to be a piece of XML CDATA, so it allows entities references, but XML special chars need to be escaped first. Use xmlNewDocRawNode if you don't need entities support.
Return value:
Returns a handle to the new node or null if failed.