how to set minOccurs/maxOccurs values in XSD file generation ?

One Star

how to set minOccurs/maxOccurs values in XSD file generation ?

Hello,
I can't find a mean to set minOccurs/maxOccurs values when using the function tAdvancedFileOutputXML with the option to create the associated xsd file, is there one ?
Thanks
Community Manager

Re: how to set minOccurs/maxOccurs values in XSD file generation ?

Hello
It is impossible to customize the minOccurs/maxOccurs. We define the default value for all the elements:
minOccurs="0" maxOccurs="unbounded"
You need change it manually after you generate the xsd file.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: how to set minOccurs/maxOccurs values in XSD file generation ?

Hello !
Thanks for your answer,
I have modified the generated code in this way but I think it would be great if it was possible to set such values while designing the job rather than in the generated code, maybe it could be taken as a future evolution ?
Best regards,
Community Manager

Re: how to set minOccurs/maxOccurs values in XSD file generation ?

Hello
Yes, I understand you, but if there are so many elements in the file and users only want to set the minOccurs/maxOccurs of only one or two elements, instead of all elements.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business