ILE COBOL Language Reference
In the XML documents that are generated from identifier-2, the XML
element tag names are derived from the name of the data item specified by
identifier-2 and from any eligible data-names that are subordinate
to identifier-2 as follows:
- The exact mixed-case spelling of data-names from the data description
entry is retained. The spellings from any references to that data item
(for example, in an OCCURS DEPENDING ON clause) are not used.
- Data-names that start with a digit are prefixed by an underscore.
For example, the data-name '3D' becomes XML tag name
'_3D'.
- Data-names that start with the characters 'xml', in any
combination of uppercase and lowercase, are prefixed by an underscore.
For example, the data-name 'Xml' becomes XML tag name
'_Xml'.
- Names of data items that are found at run time to contain characters that
are illegal in XML version 1.0 content are prefixed by
'hex.', and the content itself is expressed in
hexadecimal.
DBCS data-names, when translated to Unicode, must be legal as names in the
XML specification, version 1.0.
For a discussion of the exception codes that special register XML-CODE can
contain after execution of the XML GENERATE statement, see the ILE COBOL
Programming Guide.
+----------------------------End of IBM Extension----------------------------+
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.