When the XMLPARSE(XMLSS) option is in effect, the XML parser sets the XML-NAMESPACE special register or the XML-NNAMESPACE special register to the namespace identifier for:
The parser sets XML-NNAMESPACE when the XML document is in a national data item or the RETURNING NATIONAL phrase is specified in the XML PARSE statement; otherwise, the parser sets XML-NAMESPACE.
The special registers XML-NAMESPACE and XML-NNAMESPACE are mutually exclusive. When the parser sets XML-NAMESPACE, XML-NNAMESPACE is empty with length zero. When the parser sets XML-NNAMESPACE, XML-NAMESPACE is empty with length zero.
To determine the number of national characters in XML-NNAMESPACE, use the LENGTH intrinsic function; for example LENGTH(XML-NNAMESPACE). To determine the number of bytes in XML-NNAMESPACE, use special register LENGTH OF XML-NNAMESPACE. The number of national characters differs from the number of bytes.
To determine the number of bytes in XML-NAMESPACE, use either special register LENGTH OF XML-NAMESPACE or the LENGTH intrinsic function; both return the number of bytes.
related concepts
XML-CODE
XML-NAMESPACE-PREFIX and XML-NNAMESPACE-PREFIX
XML-TEXT and XML-NTEXT
related tasks
Writing procedures to process XML