%XML_Add_NS_Definition function


Function
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
nodeHandle to an XML element in which a namespace is to be defined.
namespaceURIName of namespace.
namespacePrefixName 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.
Example
 BOOL _bAdded 
 _bAdded := %XML_Add_NS_Definition(%XML_Item(_iElement,0),"http://localhost","h") 

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .