How to Customize Sample XML Generation
You can customize sample XML generation by specifying the following parameters. Select Preferences > XSL Maps in the Tools main menu of Oracle JDeveloper to display the Preferences dialog. You can modify the following settings under Sample XML Generation:
-
Number of repeating elements
Specifies how many occurrences of an element are created if the element has the attribute
maxOccurs
set to a value greater than1
. If the specified value is greater than the value of themaxOccurs
attribute for a particular element, the number of occurrences created for that particular element is themaxOccurs
value, not the specified number. -
Generate optional elements
If selected, any optional element (its attribute
minOccurs
set to a value of0
) is generated the same way as any required element (its attributeminOccurs
set to a value greater than0
). -
Maximum depth
To avoid the occurrence of recursion in sample XML generation caused by optional elements, specify a maximum depth in the XML document hierarchy tree beyond which no optional elements are generated.