%XML_GetElement_NS_Prefix function


Function
The function returns a text string that represents the namespace prefix of XML element.
Declaration
TEXT %XML_GetElement_NS_Prefix(
   INT in node
 )

Parameters
node Handle to XML element.

Return value
 
Description
The function returns a text string that represents the namespace prefix of XML element. If the function returns an invalid result, you may find out the information about error by calling the function %XML_GetLastErrorMessage.
Example
 TEXT _namespace_prefix 
 TEXT _errorCodeText 
 
 _namespace_prefix := %XML_GetElement_NS_Prefix(%XML_Item(_iElement,0))
 IF (!_namespace_prefix\VLD) THEN 
 _errorCodeText := %XML_GetLastErrorMessage()
 ENDIF 

Napíšte komentár