The function inserts the definition of namespace to an element of an XML document.
Declaration
TEXT %XML_Add_NS_Definition(
INT in node,
TEXT in namespaceURI,
TEXT in namespacePrefix
)
Parameters
node
Handle to an XML element in which a namespace is to be defined.
namespaceURI
Name of namespace.
namespacePrefix
Name of prefix.
Return value
Description
The function inserts the definition of a namespace to the element of an XML document. The definition consists of a unique name of a namespace (URI ) and its prefix. In fact, it is just inserting the attribute of an XML element according to this convention:
<element xmlns:h="http//:xxx">
where "h" is the prefix name of namespace and "http//:xxx" is name of namespace, i.e. URI.
0 komentárov