Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


XML-TEXT and XML-NTEXT

For most XML events, the parser sets XML-TEXT or XML-NTEXT to an associated document fragment.

Typically, the parser sets XML-TEXT when the XML document is in an alphanumeric data item. The parser sets XML-NTEXT in the following cases:

The special registers XML-TEXT and XML-NTEXT are mutually exclusive. When the parser sets XML-TEXT, XML-NTEXT is empty with length zero. When the parser sets XML-NTEXT, XML-TEXT is empty with length zero.

To determine the number of national characters in XML-NTEXT, use the LENGTH intrinsic function; for example LENGTH(XML-NTEXT). To determine the number of bytes in XML-NTEXT, use special register LENGTH OF XML-NTEXT. The number of national characters differs from the number of bytes.

To determine the number of bytes in XML-TEXT, use either special register LENGTH OF XML-TEXT or the LENGTH intrinsic function; both return the number of bytes.

related concepts    
XML-CODE
XML-EVENT

related tasks    
Writing procedures to process XML  

related references
XMLPARSE
  


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)