When the XMLPARSE(XMLSS) option is in effect, the XML parser sets the XML-NAMESPACE-PREFIX special register or the XML-NNAMESPACE-PREFIX special register in the following cases:
The parser sets XML-NNAMESPACE-PREFIX 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-PREFIX.
The special registers XML-NAMESPACE-PREFIX and XML-NNAMESPACE-PREFIX are mutually exclusive. When the parser sets XML-NAMESPACE-PREFIX, XML-NNAMESPACE-PREFIX is empty with length zero. When the parser sets XML-NNAMESPACE-PREFIX, XML-NAMESPACE-PREFIX is empty with length zero.
To determine the number of national characters in XML-NNAMESPACE-PREFIX, use the LENGTH intrinsic function; for example LENGTH(XML-NNAMESPACE-PREFIX). To determine the number of bytes in XML-NNAMESPACE-PREFIX, use special register LENGTH OF XML-NNAMESPACE-PREFIX. The number of national characters differs from the number of bytes.
To determine the number of bytes in XML-NAMESPACE-PREFIX, use either special register LENGTH OF XML-NAMESPACE-PREFIX or the LENGTH intrinsic function; both return the number of bytes.
related concepts
XML-CODE
XML-NAMESPACE and XML-NNAMESPACE
XML-TEXT and XML-NTEXT
related tasks
Writing procedures to process XML