Document settings page
About this task
This page includes up to five tabs, which control the inclusion of following items in the output:
- Comment
- Header
- Namespace declaration
- Document type declaration
- Nested chunk
Generating XML fragments
To indicate that the generated XML includes only XML fragments, select the Generate XML Chunk box.
The number of tabs depends on whether the Generate XML Chunk box is selected. If not selected, all five Document Settings tabs are present. If selected, the tabs include only Comment, Namespace Declaration and Nested Chunk.
Comment Tab
Use this tab to toggle the inclusion of the following XML comment in the generated XML. The comment is inserted after the XML declaration.
<!--
- Generated by IBM Corporation, DataStage - XMLOutput stage -
- Date
-->
Header tab
About this task
Use this tab to insert processing instructions, comments, and other information between the XML declaration and the root element in the generated XML.
You can access a header from DataStage®. In addition, you can type tags in the text box.
Namespace Declaration tab
About this task
Use this tab to insert a space-delimited list of namespace declarations within the generated root element tag.
The syntax
is: xmlns:<prefix>="<namespace_url>"
You can load namespace declarations from only table definitions that XML Meta Data Importer generates. If you did not use XML Meta Data Importer, type the declarations in the text box.
To load namespace declarations:
Procedure
Document type tab
About this task
Use this tab to insert a document type declaration in the generated XML.
You can access a document type declaration from DataStage. In addition, you can type the declaration in the text box.
Nested Chunk tab
About this task
Use this tab to insert a nested chunk in the generated XML.
You can access a nested chunk from DataStage or from a web site. In addition, you can type the nested chunk in the text box.