standard.lib.xml.xmlNewNs

xmlNewNs is available since version 1.0.

Prototype:

number xmlNewNs(number node, string href, string prefix)

Parameters

node
the XML node handle
href
the URI associated
prefix
the prefix for the namespace

Description:

Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href as an empty string in the case of an element creation where the namespace was not defined.

Return value:

Returns a new namespace handle or null if failed.