standard.lib.xml.xmlSearchNs

xmlSearchNs is available since version 1.0.

Prototype:

number xmlSearchNs(number doc, number node, string namespace)

Parameters

doc
the XML document
node
the current node
namespace
the namespace prefix

Description:

Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. namespace can be an empty string, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case.

Return value:

Returns the namespace pointer or null if not found.