The special registers XML-TEXT and XML-NTEXT are mutually exclusive. When the parser sets XML-TEXT, XML-NTEXT is undefined (length 0). When the parser sets XML-NTEXT, XML-TEXT is undefined (length 0).
The type of the XML PARSE identifier determines which of these two special registers is set, except for the ATTRIBUTE-NATIONAL-CHARACTER and CONTENT-NATIONAL-CHARACTER events. For these two events, XML-NTEXT is set regardless of the data item that you specify as the XML PARSE identifier.
To determine how many national characters XML-NTEXT contains, use the LENGTH function. LENGTH OF XML-NTEXT contains the number of bytes, rather than characters, used by XML-NTEXT.
related concepts
The content of XML-CODE
related tasks
Writing procedures to process XML
related references
XML-NTEXT
(COBOL for Windows Language Reference)
XML-TEXT
(COBOL for Windows Language Reference)