XML document templates

XML document templates
When you create an XMLOUT configuration, you can use the following types of templates:
External DTDs. Load an external DTD to the XMLOUT tool, and display all elements and attributes in the Templates view. You create the XML document structure by dragging element by element from the template to the Process view.
Internal DTD subsets. You create the internal DTD subset from the XMLOUT tool. The DTD subset is included in the XML document prolog, and its elements and attributes are displayed in the Templates view. You create the XML document structure by dragging element by element from the template to the Process view.
XML documents. Load the XML document to the XMLOUT tool, and display all elements and attributes in the Templates view. You create the XML document structure by dragging the root element to the Document node in the Process view. The whole structure is imported from the template, and you must manually delete all unnecessary nodes from the Process view. You can use an existing XML document, or use the XMLOUT tool to generate an XML document based on an external DTD, an internal DTD subset, or an XSD (XML schema). See Generating XML document templates from DTDs and XSDs.
Resources
External DTSs, XSDs, and XML document templates are all resources that you load to the XMLOUT tool. Before you load a resource, you must import the corresponding file to a resource set connected to the corresponding Message.
To load an XML document template
1
In the Process view, right-click the Resources folder and select Import XML File. The Select Resource dialog box opens.
2
3
To load a DTD | XSD
1
In the Process view, right-click the Resources folder and select Load DTD as resource | Load DTD as resource. The Select Resource dialog box opens.
2
3
To create an internal DTD subset
1
In the Process view, right-click the Prolog node and select Edit Internal DTD. The Edit Internal DTD dialog box opens.
2
Edit the DTD and click Validate to check if it follows the general DTD syntax.
3
Click OK.
4
OpenText StreamServe 5.6 Updated: 2013-03-01