Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%XML_Add_NS_Definition function


Function
The function inserts the definition of namespace to an element of an XML document.
Declaration


Blok kódu
languageesl
themeConfluence
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


Blok kódu
languageesl
themeRDark
 BOOL _bAdded 
 _bAdded := %XML_Add_NS_Definition(%XML_Item(_iElement,0),"http://localhost","h")