This article explains how to create an XML file which has include files.
Problem:
Can an XML file have include files? Is it possible to create an include instruction using COBOL XML-I-O?
Resolution:
Yes, this is possible. The include instruction for XML files look like:
The DOCTYPE declares a file which then is included with the newly defined entity name testing:
<!DOCTYPE wrapper [<!ENTITY testing SYSTEM 'testing.xml'>]>
The include is done as: &testing;
<wrapper>
&testing;
</wrapper>
The include instruction can be written as PLAIN-TEXT:
write frame-tag KEY PLAIN-TEXT
"<!DOCTYPE wrapper [<!ENTITY testing SYSTEM 'testing.xml'>]>"
For more information, see the demo attached to this article.
Incident Number: 2285017