XML document templates > Generating XML document templates from DTDs and XSDs > Custom configuration

Custom configuration
With this method, you can customize the number of instances and recursion level for each element.
The generated template will, by default, include the elements that are unambiguously declared in the DTD/XSD. You must insert all other elements manually.
To generate and load the template
1
In the Resources folder, right-click the DTD/XSD and select Autogenerate XML Document. The XML Builder – Settings dialog box opens.
2
Select Custom.
3
Specify the Document element (root element) and click OK. The XML Builder – Add Element Children dialog box opens.
4
For each active element, you can add new sub-elements. See Figure 1. Click OK to continue with the next element in turn.
5
When you have reached the last element, and clicked OK, a preview of the final XML document template is displayed in the XML Builder – Result Tree dialog box. You can edit the attribute values.
6
Click OK. The XML document template is generated and loaded.
Click to enlarge
Figure 1
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01