Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (3)
3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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,
Anonymous
Not applicable
Author

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