XML document samples > Generating samples 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 sample 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 sample
1
2
Right-click the DTD/XSD and select Generate Instance Document. The XML Builder – Settings dialog box opens.
3
Select Custom.
4
Specify the Document element (root element) and click OK. The XML Builder – Add Element Children dialog box opens.
5
For each active element, you can add new sub-elements. See Figure 1. Click OK to continue with the next element in turn.
6
When you have reached the last element, and clicked OK, a preview of the final XML document sample is displayed in the XML Builder – Result Tree dialog box. You can edit the attribute values.
7
Click OK. The XML document sample is generated and loaded.
Click to enlarge
Figure 1
OpenText StreamServe 5.6 Updated: 2013-03-01