import/export mappings are not modular

0
Hi Community. We generate a big XML in our app out of a tree of non-persistable entities. In this XML the same element can appear in different places and have different parents, but its children usually have identicall mapping rules. In the XSD we declare such elements as xs:complexType and reuse then in different places of the XML schema. However, in the Mendix export mapping we have to manually repeat the routine of clicking all the element's children as many times as it may appear in the schema. The number of an element children can be a hundred and the element may appear a dozen of times in the structure. When making a single change we have to repeat this change multiple times. It's error prone.Is there a way to modularize XML export mapping? Ideally, the parent export mapping could refer to the same child export mapping instead of an XML node in the schema. Or is there a way to prevent manual editing of an export mapping and generate it out of some template?
asked
0 answers