Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Posted: Mon Jan 14, 2013 9:36 pm
Hello,
I have on RFE. When using Generate Sample XML Files -> Options -> Settings -> Preferred number of repetitions, I would like to have some ability to generate maxOccurs element. As stated in "i" help:
n < minOccurs -> minOccurs
minOccurs < n -> n
n < maxOccurs -> n
maxOccurs < n -> n = THAT IS WHAT I DO NOT WANT TO HAVE IN RESULT, I WANT maxOccurs
Because I think, that in case maxOccurs < n -> n, the resulted XML would be invalid. In other words - it could be nice to have possibility to generate "largest XML as XSD allows" (and still valid XML).
Am I right? Thank You in advance for Your answer. Stepan
P.S. In "i" help is exactly written (the last statement is problem for me. And I do not know why that behavior was chosen. Maybe I missed something important regarding XML usage.
Option to set the preferred number of repeating elements related with minOccurs and maxOccurs defined in XML Schema.
If the value set here is between minOccurs and maxOccurs, that value will be used.
If the value set here is less than minOccurs, the minOccurs value will be used.
If the value set here is greater than maxOccurs, that value will be used.
I have on RFE. When using Generate Sample XML Files -> Options -> Settings -> Preferred number of repetitions, I would like to have some ability to generate maxOccurs element. As stated in "i" help:
n < minOccurs -> minOccurs
minOccurs < n -> n
n < maxOccurs -> n
maxOccurs < n -> n = THAT IS WHAT I DO NOT WANT TO HAVE IN RESULT, I WANT maxOccurs
Because I think, that in case maxOccurs < n -> n, the resulted XML would be invalid. In other words - it could be nice to have possibility to generate "largest XML as XSD allows" (and still valid XML).
Am I right? Thank You in advance for Your answer. Stepan
P.S. In "i" help is exactly written (the last statement is problem for me. And I do not know why that behavior was chosen. Maybe I missed something important regarding XML usage.
Option to set the preferred number of repeating elements related with minOccurs and maxOccurs defined in XML Schema.
If the value set here is between minOccurs and maxOccurs, that value will be used.
If the value set here is less than minOccurs, the minOccurs value will be used.
If the value set here is greater than maxOccurs, that value will be used.