I was wondering if you could help me in understanding and designing the recursion in the XSD. My question is regarding defining the max depth of the recursion at the time of definition of the schema. For ex, if I refer to a recursive element, I want to define the number of times the element can be called recursively.
This way I can avoid infinite recursion or creating duplicate objects for calling an object within itself. Please find below the sample schema that I prepared to explain this issue: