XML_GetElement_NS_URI

XML_GetElement_NS_URI

%XML_GetElement_NS_URI function


Function

The function returns a text string that represents the name of a namespace of an XML element.

Declaration

TEXT %XML_GetElement_NS_URI( INT in node )

Parameters

node

Handle to XML element.

Return value

 

Description

The function returns a text string that represents the name of a namespace of an 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_uri TEXT _errorCodeText _namespace_uri := %XML_GetElement_NS_URI(%XML_Item(_iElement,0)) IF (!_namespace_uri\VLD) THEN _errorCodeText := %XML_GetLastErrorMessage() ENDIF